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