Re: Small TH demo: generating instances
"Rene de Visser" <[email protected]> Fri, 1 Sep 2006 18:44:48 +0200
| Newsgroups | gmane.comp.lang.haskell.template |
|---|---|
| Message-ID | <[email protected]> |
"Simon Peyton-Jones" <[email protected]> schrieb im Newsbeitrag 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! Hello Simon, Already done, it was the point above the one you added. I will combine the two entries together (I put the body on another page as I thought it would be too long). Rene. | -----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. |