31 Jan
2007
31 Jan
'07
7:45 p.m.
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? Regards, -- S.Karrmann The truth of a proposition has nothing to do with its credibility. And vice versa.