Hello all,
MultiRec[1,2] is a great library for generic programming for families
of possibly mutual recursive data types. Creating new generic
functions might take some effort but the use of these functions is
very straightforward.
The multirec-binary[3] packages allows generic derivation of
Data.Binary instances using the MultiRec library.
Just try something like this:
> import Data.Binary
> import Generics.MultiRec.Base
> import Generics.MultiRec.Binary
>
> instance Binary MyType where
> put = gput MyFamily
> get = gget MyFamily
Have fun,
--
Sebastiaan Visser
[1] http://hackage.haskell.org/cgi-bin/hackage-scripts/package/multirec-0.3
[2] http://www.cs.uu.nl/research/techreps/repo/CS-2008/2008-019.pdf
[3] http://hackage.haskell.org/cgi-bin/hackage-scripts/package/multirec-binary
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe