[Haskell-cafe] parsec reorganization

Omari Norman omari at smileystation.com
Wed Mar 30 16:26:41 UTC 2016


On Wednesday, March 30, 2016, Rustom Mody <rustompmody at gmail.com> wrote:

> Ive been trying parsec
> And I gather that the modules structures are heavily reorganized
>
> eg
> https://kunigami.wordpress.com/2014/01/21/an-introduction-to-the-parsec-library/
> starts with
>
> import Data.Char (char)
>

That's incorrect and has never been correct.  The parser you want is in
Text.Parsec.Char. Data.Char is a standard Haskell module and has nothing to
do with Parsec.

Unfortunately I can't recommend any particular tutorial. Mostly I thrashed
about, reading this and that. The principles are best explained in the
original papers, such as this one:

http://research.microsoft.com/en-us/um/people/daan/download/papers/parsec-paper.pdf

But unfortunately the original papers are somewhat out of date too.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160330/c41c423c/attachment.html>


More information about the Haskell-Cafe mailing list