[Haskell-cafe] Some useful TH templates

Neil Mitchell ndmitchell at gmail.com
Mon Nov 23 04:50:52 EST 2009

Hi Yair,

> I wrote some Template Haskell templates that I think may be of use to others.
> The first generates "in" and "with" functions for newtypes.

This looks very nice. Have you thought about putting this code in to
the Derive package? (http://community.haskell.org/~ndm/derive, and
also on Hackage).

It provides a set of derivations, which can be called from Template
Haskell, and a command line program for applying them. By putting them
inside Derive you'll get lots of nice things for free, and it will be
easier for people to use your code.

Thanks, Neil

More information about the Haskell-Cafe mailing list