[Haskell-cafe] Re: Bit Streams
dominic.steinitz at blueyonder.co.uk
Wed Jun 18 03:46:08 EDT 2008
OK, so today I tried to write my first program using the Binary library.
And I've hit a snag: It appears the library will only handle data that
is byte-aligned. So if I try to write three Bool values, it uses three
bytes, not three bits.
Before I sit down and spend 3 months designing my own library from
scratch, does anybody know of an existing library that allows you to do
what Binary does, but with single-bit precision? [I presume Binary is
byte-aligned for efficiency...]
More information about the Haskell-Cafe