
2 Oct
2005
2 Oct
'05
12:03 p.m.
joelr1:
Folks,
How would I implement reading of big/little-endian shorts, longs, floats, etc. from a fast packed string?
Have a look at Binary.hs. You've just got bytes in the FastStrings, so Data.Bits might help too. Binary.hs is in GHC's utils/, iirc. Possibly New Binary would also be useful (the cabalised library). Good idea btw! -- Don