[Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

Henning Thielemann lemming at henning-thielemann.de
Mon Jan 10 23:30:41 CET 2011

John Lato schrieb:

> You could use my "word24" package[1] (GHC only) to provide non-aligned
> 24-bit word and int types with Storable instances.  You should be able
> to write a binary instance (or whatever blaze-builder needs) fairly
> simply from this.  Little-endian only ATM, but BE could be added if
> necessary.

Good to know that! However, I think for the original poster the binary
package is perfect. This way he does not worry about unsafe peeking and
poking around in memory.

More information about the Haskell-Cafe mailing list