RE: TH preprocessing
"Simon Peyton-Jones" <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.template |
|---|---|
| Message-ID | <4B93206CA3C55D4F96A61C9B1DC80DE30121A4DD@EUR-MSG-03.europe.corp.microsoft.com> |
Not at present. It's actually a little trickier than it looks, because the post-type-checked program (with the splices expanded) has dictionary stuff floating around, and it's not entirely straightforward to convert it back to vanilla source Haskell. You're right it would be useful. I think it's feasible with a bit of work. I'd be willing to help anyone who wanted to undertake it. Simon | -----Original Message----- | From: [email protected] [mailto:[email protected]] On | Behalf Of Wolfgang Jeltsch | Sent: 09 May 2004 23:14 | To: Template Haskell Mailing List | Subject: [Template-haskell] TH preprocessing | | Hello, | | is there a program which takes a Haskell source file, compiles it with | -ddump-splices, replaces the splices in the source file with the dumped code | and outputs the resulting file? I'd like such a tool since I think it would | it make possible to use TH with Hugs. You would preprocess each file with | this program and feed Hugs with the resulting files. | | Wolfgang | | _______________________________________________ | template-haskell mailing list | [email protected] | http://www.haskell.org/mailman/listinfo/template-haskell