[Haskell-cafe] Data.Bitmap, readBitmap exception
alexanderforemny at gmail.com
Thu Jun 28 13:48:06 CEST 2012
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.
2012/6/28 Serge Le Huitouze <serge.lehuitouze at gmail.com>:
> Hi Alexander,
>> I am using bitmap-0.2  to load a Bitmap file . 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 . 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 (?).
More information about the Haskell-Cafe