As Bulat says, the Derive package might be a good way to go. I am happy to accept any new derivations, and you get lots of things for free - including writing your code using the nice haskell-src-exts library, preprocessor support, TH support etc.
Thanks, Neil On Thu, Feb 25, 2010 at 8:57 AM, Bulat Ziganshin <bulat.zigans...@gmail.com> wrote: > Hello Christian, > > Thursday, February 25, 2010, 3:57:44 AM, you wrote: > >> I am thinking about how to easily generate instances for a class. Each > > it's called generic programing. just a few overviews on this topic: > > Libraries for Generic Programming in Haskell > http://www.cs.uu.nl/research/techreps/repo/CS-2008/2008-025.pdf > > Comparing Approaches to Generic Programming in Haskell > http://www.cs.uu.nl/~johanj/publications/ComparingGP.pdf > > Derive package is probably the easiest way > > Template Haskell is also good although a bit too complex. my own pets: > http://www.haskell.org/bz/th3.htm > http://www.haskell.org/bz/thdoc.htm > > -- > Best regards, > Bulat mailto:bulat.zigans...@gmail.com > > _______________________________________________ > Glasgow-haskell-users mailing list > Glasgow-haskell-users@haskell.org > http://www.haskell.org/mailman/listinfo/glasgow-haskell-users > _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users