[Template-haskell] Small TH demo: generating instances
Simon Peyton-Jones
simonpj at microsoft.com
Fri Sep 1 07:41:49 EDT 2006
I've tagged it on as an example in
http://haskell.org/haskellwiki/Template_Haskell
If you feel like it, you could inline more of your message, and
attachments, into the Wiki page. Feel free to make other improvements!
Simon
| -----Original Message-----
| From: template-haskell-bounces at haskell.org
[mailto:template-haskell-bounces at haskell.org] On Behalf
| Of Rene de Visser
| Sent: 24 August 2006 20:43
| To: template-haskell at haskell.org
| Subject: [Template-haskell] Small TH demo: generating instances
|
| I am hoping that this example is small, simple and well commented
enough to
| help people generate instances with TH.
|
| The instance generation is used to create instances to render haskell
code
| to TH code that generates the original haskell code.
|
| there is an example in Test.hs
|
| The instance generation function is in Base.hs. TH_Render.hs is where
the
| instances are derived.
|
| Rene.
|
More information about the template-haskell
mailing list