<div dir="ltr"><div><div>This should be possible to start as a custom library. Appropriately shimming the result back into TH. Then with some experience and lessons learned we can investigate replacing TH with this new approach.<br><br></div>I ran across many similar issues with TH, haskell-src-exts, haskell-src-meta, etc.<br><br></div><div>Levent: Would it be appropriate for us to start putting together this shim? As Simon says in (<a href="https://ghc.haskell.org/trac/ghc/ticket/11081#comment:5">https://ghc.haskell.org/trac/ghc/ticket/11081#comment:5</a>) we can go a long ways with a plethora of pattern synonyms.<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 8, 2015 at 9:51 PM, Levent Erkok <span dir="ltr"><<a href="mailto:erkokl@gmail.com" target="_blank">erkokl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I just came across <a href="https://ghc.haskell.org/trac/ghc/ticket/11081" target="_blank">https://ghc.haskell.org/trac/ghc/ticket/11081</a>, and the corresponding wiki-page: <a href="https://ghc.haskell.org/trac/ghc/wiki/TemplateHaskell/Introspective" target="_blank">https://ghc.haskell.org/trac/ghc/wiki/TemplateHaskell/Introspective</a><div><br></div><div>I think this is a terrific idea. In the past, I've tried both TH and haskell-src-exts to do relatively simple things, but ended-up abandoning them due to the inherent complexity of source level haskell that had very little to do with what I really cared about. Being able to get your hands on Core at the regular Haskell level would truly simplify life, and I suspect would open the flood-gates for a lot of people to develop extremely cool/useful artifacts, making the GHC/Haskell experience even better.</div><div><br></div><div>I hope this idea is taken further and sees the light-of-day.</div><div><br></div><div>Richard: Did you have any further thoughts about possible plans?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-Levent.</div></font></span></div>
<br>_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
<br></blockquote></div><br></div>