Uncertain bug report (panic!)
I really have no clue what happened; ghc panic!'d without much info, as far as I can tell. I've attached the files I've been working with.
:l imageloader in ghc, a panic! is achieved. That's about the extent of it. Everything was working fine (well, wan't compiling, but I ripped out the guts and was piecing it back together; but still, no crashing) until I changed the cast on line 26 of ImageLoader.hs.
(I'm a Haskell n00b, hence the overtly inefficient and poorly-formatted code)