[Haskell-cafe] Haskell syntax inside QuasiQuote
mjm2002 at gmail.com
Tue Oct 21 01:28:28 EDT 2008
> Is there a simple way to do this, i.e. using existing libraries?
Yes indeed. I'll be traveling over the next two days, and am shooting
for a fully functional hackage release by mid next week.
> What I need is a Haskell expression parser which outputs values of type
> Language.Haskell.TH.Syntax.QExp, but I can't see one available in the TH
> libraries, or in the haskell-src(-exts) libraries.
My strategy is to use the existing haskell-src-exts parser, then
translate that AST to the TH AST.
Once I've got settled in one place, I'll follow up with a brain dump :)
More information about the Haskell-Cafe