[Haskell-cafe] Parsec Vs. src exts

Roman Cheplyaka roma at ro-che.info
Sat Feb 2 22:23:04 CET 2013


Hi Sean,

1. Please do not confuse haskell-src and haskell-src-exts. You should
   definitely use the latter. I also find it relatively well documented.
2. If your goal is to write a tool and not to write a Haskell parser as
   an exercise, then I would recommend haskell-src-exts. Another option
   is the GHC API.

If you have any particular questions or difficulties with these
libraries, feel free to post them here.

Roman

* Sean Cormican <seancormican1 at gmail.com> [2013-02-02 20:08:48+0000]
> Hi,
> 
> I've been spending a bit of time looking into using Parsec as a parser for
> a subset of the syntax of the Haskell language, a high level description of
> what I'm looking to create is a parser which confirms whether a given
> Haskell code file is valid or in the case that it isn't returns some
> helpful error messages to the user. (Please bear with me, I know this is a
> strange implementation)
> 
> My question is that while I have a modest understanding of Parsec from
> tutorials, the haskell-src package has also been recommended of which I can
> find very limited documentation in comparison. However, the issue arises
> from both my limited understanding of haskell and lack of information on
> the usage of haskell-src.
> 
> Can anybody provide me with some guidance on whether to try and create the
> parser using Parsec or if haskell-src is a better option.
> In the case that haskell-src is a better option, are there any tutorials or
> documents that I would benefit from reading?
> 
> Thanks in advance,
> Seán

> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe




More information about the Haskell-Cafe mailing list