
5 Mar
2009
5 Mar
'09
12:55 a.m.
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 http://www.thenewsh.com/~newsham/