RE: TH type not Typeable?
"Simon Peyton-Jones" <[email protected]> Fri, 10 Jun 2005 09:06:33 +0100
| Newsgroups | gmane.comp.lang.haskell.template |
|---|---|
| Message-ID | <036EAC76E7F5EC4996A3B3C3657D41160292DF6C@EUR-MSG-21.europe.corp.microsoft.com> |
Perhaps someone can go ahead and add these instances to the TH types? Ian? that way it'll be in the next release, at least Simon | -----Original Message----- | From: [email protected] [mailto:[email protected]] On | Behalf Of Sean Seefried | Sent: 10 June 2005 04:02 | To: Abraham Egnor | Cc: [email protected] | Subject: Re: [Template-haskell] TH type not Typeable? | | | On 10/06/2005, at 10:07 AM, Abraham Egnor wrote: | | > I'd just like to pipe up and say that the lack of Typeable and Data | > instances for the TH types has frustrated me as well. | | Me too. But there's a solution. Check out the code that comes with | the third paper in the "Scrap Your Boilerplate" series. There's a | module in there called Derive.hs that contains code for deriving | Typeable and Data instances using Template Haskell. The cool thing | is, you can use it *on* Template Haskell's data types too. | | In fact, I did this in my PanTHeon project available from my web site | at: | | http://www.cse.unsw.edu.au/~sseefried/pantheon.html | | However, this uses an older version of the deriving code. You'd | probably want to get the latest. | | Cheers, | | Sean | _______________________________________________ | template-haskell mailing list | [email protected] | http://www.haskell.org/mailman/listinfo/template-haskell