27 Oct
2005
27 Oct
'05
7:11 p.m.
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:bulatz@HotPOP.com