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

Stefan Karrmann S.Karrmann at web.de
Wed Jan 31 14:45:58 EST 2007

Dear Donald!

Donald Bruce Stewart (Fri, Jan 26, 2007 at 01:51:01PM +1100):
>         Binary: high performance, pure binary serialisation for Haskell
>      ---------------------------------------------------------------------- 
> Encoding and decoding are achieved by the functions:
>     encode :: Binary a => a -> ByteString
>     decode :: Binary a => ByteString -> a
> which mirror the read/show functions. Convenience functions for serialising to
> disk are also provided:

How can you detect that a decode fails? Do you need to catch an error in the
IO monad?

How can you know that there is remaining input in the ByteString?


The truth of a proposition has nothing to do with its credibility.  And
vice versa.

More information about the Haskell mailing list