
Hello Serge,
thank you very much for you response. Unfortunately this does not
enlighten me. But maybe this is helpful to someone else who could
given an answer.
Regards,
Alexander Foremny
2012/6/28 Serge Le Huitouze
Hi Alexander,
I am using bitmap-0.2 [1] to load a Bitmap file [2]. However, the following sample GHCi session fails for me.
(...)
Prelude Data.Bitmap Data.Bitmap.Pure.File> readBitmap "b.bmp" :: IO (Bitmap Word8) *** Exception: decodeCType: unexpected integer (7077888)
I don't have any idea where 7077888 comes from. Am I doing something wrong? Is my bitmap corrupted in some way? The number 7077888 has no apparent significance except that it is a perfect cube [3]. So I guess this is not a problem with endianness.
Sorry, no personal experience with Data.Bitmap...
In case it's a hint, decimal 7077888 is 0x006C0000, and 6C is ascii code for "l".
HTH (?).
--Serge