[Haskell-cafe] binary serialization

Tim Newsham newsham at lava.net
Thu Mar 5 00:55:20 EST 2009

> fft1976:
>> Is there a way to do binary serialization of Haskell values (in GHC,
>> at least)? If you propose a method, what are its type safety and
>> portability properties?
> There are many ways. See Data.Binary (fast, portable). Most are type
> safe, or additional safety can be added.

I would add to that: Data.Derive can be used to automatically
generate Data.Binary.Binary instances for your custom data types.

Tim Newsham

More information about the Haskell-Cafe mailing list