[Haskell-cafe] Data.Binary Endianness
Sven Panne
sven.panne at aedion.de
Mon Sep 10 12:11:50 EDT 2007
On Monday 10 September 2007 17:17, Jules Bean wrote:
> On the documentation page:
>
> http://www.cse.unsw.edu.au/~dons/binary/Data-Binary.html
> [...]
Just a small hint: That page seems to be out of date compared to:
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/binary-0.3
The library looks quite nice, but I'm missing support for reading/writing
Int{8,16,32,64} and Float/Double (in IEEE format, currently *the* binary
representation in most formats I know) in LE/BE/host byte order. Have I
overlooked something? Using unsafeCoerce# and friend there are probably
workarounds for this, but having it in the "official" API would be quite
helpful for I/O of real-world formats.
Cheers,
S.
More information about the Haskell-Cafe
mailing list