I created a GHC patch that spits out the generated Template Haskell code to a file with -dump-to-file -ddump-splices https://ghc.haskell.org/trac/ghc/ticket/9126
On Sat, Jul 5, 2014 at 8:18 PM, adam vogt <vogt.a...@gmail.com> wrote: > Zeroth takes the first approach. It only supports a subset of TH > (DecsQ splices) however. > > http://hackage.haskell.org/package/zeroth > > https://github.com/aavogt/zeroth is a fork that works with more recent > haskell-src-exts and ghc > > On Sat, Jul 5, 2014 at 3:59 PM, John Meacham <j...@repetae.net> wrote: > > Actually, I was looking into it a little, and template haskell could > > effectively be implemented by a pre-processor and a portable library > > that is compiler independent. If one could get ghc to spit out the > > template haskell source after it expands it then that can be fed to > > jhc as a quick first pass, but ideally the pre-processor TH would > > create programs that can be run under the target compiler. that would > > bring TH to every haskell compiler. > > > > John > > > > On Sat, Jul 5, 2014 at 10:38 AM, Brandon Allbery <allber...@gmail.com> > wrote: > >> On Sat, Jul 5, 2014 at 1:34 PM, Carter Schonwald > >> <carter.schonw...@gmail.com> wrote: > >>> > >>> does JHC support template haskell? > >> > >> > >> Pretty sure TH is too closely tied to ghc. > >> > >> -- > >> brandon s allbery kf8nh sine nomine > associates > >> allber...@gmail.com > ballb...@sinenomine.net > >> unix, openafs, kerberos, infrastructure, xmonad > http://sinenomine.net > > > > > > > > -- > > John Meacham - http://notanumber.net/ > > _______________________________________________ > > Glasgow-haskell-users mailing list > > Glasgow-haskell-users@haskell.org > > http://www.haskell.org/mailman/listinfo/glasgow-haskell-users > _______________________________________________ > Glasgow-haskell-users mailing list > Glasgow-haskell-users@haskell.org > http://www.haskell.org/mailman/listinfo/glasgow-haskell-users >
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users