On Mon, 2007-09-10 at 18:11 +0200, Sven Panne wrote: > 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}
maybe this? http://hackage.haskell.org/packages/archive/binary/0.3/doc/html/Data-Binary-Get.html#v%3AgetWord8 Also note that many Haskell standard types are instances of the Binary class. I might have misunderstood what you're asking for, though... > 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. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe