[Template-haskell] TH preprocessing
Simon Peyton-Jones
simonpj at microsoft.com
Mon May 10 10:29:26 EDT 2004
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: template-haskell-bounces at haskell.org
[mailto:template-haskell-bounces at haskell.org] 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
| template-haskell at haskell.org
| http://www.haskell.org/mailman/listinfo/template-haskell
More information about the template-haskell
mailing list