[Haskell-cafe] template haskell for typeclass synonyms

Paolino paolo.veronelli at gmail.com
Mon Nov 1 12:53:20 EDT 2010


I'd like to have a template haskell function that take some constraints and
a class name and write an empty class from those and relative empty instance
to simulate typeclass synonyms.

As I've never written TH and couldn't find a easily adaptable code around, I
ask here for the code, or some hints on how to arrive there.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20101101/1862f849/attachment.html

More information about the Haskell-Cafe mailing list