Don Stewart wrote:
> dominic.steinitz:
>> 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...]
>>
>> http://hackage.haskell.org/cgi-bin/hackage-scripts/package/binary-strict
> 
> The bitsyntax library perhaps? or a StateT over Binary for carrying
> arround the bit packet to write.
> 
> -- Don
> 
> 
The vagaries of gmane have made it appear that I asked the question. In
fact, Andrew Coppin asked the question and I responded with a pointer to
 the library Adam Langley pulled together.

Dominic.

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to