Binary IO

Dominic Steinitz dominic.steinitz at blueyonder.co.uk
Sun Apr 24 04:19:25 EDT 2005


On Friday 22 Apr 2005 9:48 pm, libraries-request at haskell.org wrote:
> Message: 1
> Date: Fri, 22 Apr 2005 08:30:27 -0700
> From: "David Brown" <haskell at davidb.org>
> Subject: Re: Binary IO
> To: "Peter Simons" <simons at cryp.to>, libraries at haskell.org
> Message-ID: <op.spm301mpl6e4hk at a64.davidb.org>
> Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1
>
> On Fri, 22 Apr 2005 08:09:27 -0700, Peter Simons <simons at cryp.to> wrote:
> >> And hGet/PutWord8 are fast enough for most situations.
> >
I haven't been following the discussion closely but I am just about to make a 
big release of the crypto library and I have been using "Hal Daume III's 
NewBinary now ghc6ized, cabalized, debianize, darcsized." available at 
http://www.n-heptane.com/nhlab/repos/NewBinary. Specifically I use:

import qualified NewBinary.Binary as B (BinHandle, getBits, getByte)

I hadn't see anything about getBits but would make a plea for its inclusion in 
any Binary IO package.
>
> I seem to run into this kind of thing a lot with Haskell.  Dominic's ASN
> library is useful to me, however I'm finding I'll probably just have to
> use it as a template for new code.  It works fine for what designed for,
> parsing keys and such, but I'm looking to use it to represent gigabytes of
> data.  Processing data like that one Word8 at a time isn't practical.
For information, the most significant change in the crypto library (as well 
darcsizing, cabalizing and restructuring it to fit the agreement reached on 
this list - 
http://www.haskell.org//pipermail/libraries/2005-January/002856.html) is the 
ASN.1 handling. If that is going to cause anyone problems, please let me know 
I will see what can be done.

Dominic.



More information about the Libraries mailing list