
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?

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.

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/
participants (3)
-
Don Stewart
-
FFT
-
Tim Newsham