Re: automatic instances for pretty printing and parsing
Bulat Ziganshin <[email protected]> Thu, 27 Oct 2005 17:41:20 +0400
| Newsgroups | gmane.comp.lang.haskell.template |
|---|---|
| Message-ID | <[email protected]> |
Hello Johannes, Tuesday, October 04, 2005, 4:26:27 PM, you wrote: JW> I use Text.PrettyPrint.HughesPJ and JW> Text.ParserCombinators.Parsec heavily so I made JW> some DrIFT rules for deriving the "obvious" instances for JW> so I'd like to investigate whether I could get the same effect JW> with Template Haskell (in ghc) - and what this would cost. well, it is not so pretty, but it works :) try "ghc --make -ddump-splices test-derive.hs" i wrote this to include in doc as an example of using reification facilities, so if it can be simplified or better documented - say to me :) -- Best regards, Bulat mailto:[email protected] _______________________________________________ template-haskell mailing list [email protected] http://www.haskell.org/mailman/listinfo/template-haskell
test-derive.hs
(application/octet-stream, 173 B) - not displayed
derive.hs
(application/octet-stream, 1.8 KB) - not displayed