RE: [Template-haskell] TH type not Typeable?
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: template-haskell-bounces@haskell.org [mailto:template-haskell-bounces@haskell.org] On | Behalf Of Sean Seefried | Sent: 10 June 2005 04:02 | To: Abraham Egnor | Cc: template-haskell@haskell.org | 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 | template-haskell@haskell.org | http://www.haskell.org/mailman/listinfo/template-haskell
participants (1)
-
Simon Peyton-Jones