<div dir="ltr"><div><div>I think the main argument against using GHC is that the library is intimately tied to the current compiler, so writing a tool to process haskell source which is compiler version independent it tricky, requiring lots of CPP.<br><br></div>I am starting to wonder if it does not make sense to make a companion library for each GHC release with is just the parser/AST, and so can be used with any other compiler, even a non-ghc one.<br><br></div>Alan<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 1, 2015 at 9:18 AM, Mike Izbicki <span dir="ltr"><<a href="mailto:mike@izbicki.me" target="_blank">mike@izbicki.me</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've always been curious why we need a stand alone package for parsing<br>
haskell code?  Last time I tried to use haskell-src-exts (admittedly<br>
several years ago), it was out of date and didn't support the<br>
extensions I wanted.<br>
<br>
It seems like the ideal solution would be to have GHC's parsing code<br>
exposed as a library.  And this library would be compatible with<br>
template haskell.  Is there some technical reason why this is<br>
inherently difficult?  Or is it just an accident of history that<br>
things didn't develop that way?<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Jun 30, 2015 at 11:54 PM, Christian Marie <<a href="mailto:christian@ponies.io">christian@ponies.io</a>> wrote:<br>
> On Mon, Jun 29, 2015 at 01:13:54PM +0100, Matthew Pickering wrote:<br>
>> There are a large number of untriaged pull requests and issues<br>
>> currently open on the issue tracker for haskell-src-exts. The tool is<br>
>> widely used by tool writers but the last commit to the project is now<br>
>> over 6 months ago.<br>
><br>
> I was about to post this exact message after searching around for a good hour.<br>
><br>
>> 1. Does anyone know if Niklas or Peter plan to return to the project?<br>
><br>
> I didn't contact them directly. I'm not so sure if Nicklas is active at all.<br>
><br>
>> 2. Is there anyone else who is interested in updating the HSE parser?<br>
><br>
> Yes, I've got at least one fix I'd like to make myself and I'd be happy to do<br>
> some triaging and releasing too. Most of the PRs look pretty good.<br>
><br>
> Roman Cheplyaka is a maintainer on hackage, hopefully he sees and knows<br>
> something aobut this.<br>
><br>
> I'll email some people in the haskell suite group directly if this thread<br>
> doesn't go anywhere.<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> Haskell-Cafe mailing list<br>
> <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
> <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
><br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div>