[Haskell-cafe] Re: ANNOUNCE: binary: high performance, pure binary serialisation

John Meacham john at repetae.net
Fri Jan 26 16:29:48 EST 2007

On Fri, Jan 26, 2007 at 03:40:42PM +0100, Arie Peterson wrote:
> Using DrIFT would probably automate the deriving just as well, but in my
> particular situation TH support is easier to maintain than DrIFT support.

DrIFT as of 2.2.1 now supports binary for this package. using it is as
simple as this:

> import Data.Binary
> data Foo = Foo Int Char | Bar Foo
>     {-!derive: Binary -}

and then compiling with the following extra options to ghc

ghc -pgmF drift-ghc -F ...

now everything will be taken care of automatically.


John Meacham - ⑆repetae.net⑆john⑈

More information about the Haskell-Cafe mailing list