
20 Feb
2009
20 Feb
'09
1:16 a.m.
On 2009 Feb 19, at 13:12, Don Stewart wrote:
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'd think these would be additions to the Word* types, reorganized under a Word class. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH