RE: Small TH demo: generating instances
"Simon Peyton-Jones" <[email protected]> Fri, 1 Sep 2006 12:41:49 +0100
| Newsgroups | gmane.comp.lang.haskell.template |
|---|---|
| Message-ID | <036EAC76E7F5EC4996A3B3C3657D41160663DA7E@EUR-MSG-21.europe.corp.microsoft.com> |
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: [email protected] [mailto:[email protected]] On Behalf | Of Rene de Visser | Sent: 24 August 2006 20:43 | To: [email protected] | 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. |