[Haskell-cafe] ANNOUNCE: binary: high performance, pure binary serialisation

Donald Bruce Stewart dons at cse.unsw.edu.au
Fri Jan 26 18:23:33 EST 2007


lemming:
> 
> On Fri, 26 Jan 2007, Donald Bruce Stewart wrote:
> 
> > 
> >         Binary: high performance, pure binary serialisation for Haskell
> >      ---------------------------------------------------------------------- 
> > 
> > The Binary Strike Team is pleased to announce the release of a new,
> > pure, efficient binary serialisation library for Haskell, now available
> > from Hackage:
> >     
> >  tarball:    http://hackage.haskell.org/cgi-bin/hackage-scripts/package/binary/0.2
> >  darcs:      darcs get http://darcs.haskell.org/binary
> >  haddocks:   http://www.cse.unsw.edu.au/~dons/binary/Data-Binary.html
> 
> I want to write out data in the machine's endianess, because that data 
> will be post-processed by sox, which reads data in the machine's 
> endianess. Is this also planned for the package?

The underlying Get and Put monads support explicit endian writes and
reads, which you can add to your instances explicitly:

    http://www.cse.unsw.edu.au/~dons/binary/Data-Binary-Get.html#5
    http://www.cse.unsw.edu.au/~dons/binary/Data-Binary-Put.html#5

So you can do that now. 

-- Don


More information about the Haskell-Cafe mailing list