
21 Feb
2009
21 Feb
'09
3:55 p.m.
dons:
Hey guys,
At work we have many and varied needs to do bytewise operations on Haskell data. Things like:
toBigEndian rotateBytes
etc.
Has anyone thought about:
* A "Bytes" class, like the Bits class? Providing standard operations on values treated as bytes?
* An Endian class, a la fromIntegral, for flipping bytes into a particular endianness.
I found http://hackage.haskell.org/packages/archive/byteorder/1.0.0/doc/html/System-... http://hackage.haskell.org/cgi-bin/hackage-scripts/package/byteorder-1.0.0 On Hackage. which does a few things in this area.