hi,

i was wondering if it's possible to directly generate Haskell source code from a Template Haskell `Q Exp', i.e. use TH as a kind of preprocessor? i am asking because currently the iOS port of ghc doesn't support TH and i need to generate some instances for the persistent package [1,2].

i've been toying with

fmap ppr . runQ $ q

but the result needs to be edited by hand quite a bit. any ideas where to start?

thanks,
<sk>

[1] http://hackage.haskell.org/package/persistent
[2] http://hackage.haskell.org/package/persistent-template

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to