
26 Jan
2007
26 Jan
'07
4:29 p.m.
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 -- John Meacham - ⑆repetae.net⑆john⑈