package ParsecToken

I am new to the community and learning Parsec, reading the tutorial "Parsec, a fast combinator Parse" by Daan Leijen. In the tutorial, the examples import the package called "ParsecToken" and I could not find this package any where (I found many variants like Text.Parsec.Token, Text.ParseCombinators.Parsec.Token etc.) So I was unable to execute those examples given there. Q1. How do I find the package name for "ParsecToken" so that I can do cabal import? Thanks.

On Sun, Mar 15, 2015 at 10:00 AM, Kattamuri Ekanadham
I am new to the community and learning Parsec, reading the tutorial "Parsec, a fast combinator Parse" by Daan Leijen.
In the tutorial, the examples import the package called "ParsecToken" and
The tutorial is for Parsec version 1 for Haskell98, which only had flat package names. It is no longer 1998. :) Text.ParserCombinators.Parsec.Token is probably closest to the flat module, but even that is out of date; it's a compatibility shim for Parsec 2, whereas the Text.Parsec modules are Parsec 3. I don't know if there are any updated tutorials for Parsec 3. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

A tutorial for Parsec 3 lives here:
https://github.com/JakeWheat/intro_to_parsing
HTH
On 15 March 2015 at 19:33, Brandon Allbery
On Sun, Mar 15, 2015 at 10:00 AM, Kattamuri Ekanadham
wrote: I am new to the community and learning Parsec, reading the tutorial "Parsec, a fast combinator Parse" by Daan Leijen.
In the tutorial, the examples import the package called "ParsecToken" and
The tutorial is for Parsec version 1 for Haskell98, which only had flat package names. It is no longer 1998. :)
Text.ParserCombinators.Parsec.Token is probably closest to the flat module, but even that is out of date; it's a compatibility shim for Parsec 2, whereas the Text.Parsec modules are Parsec 3. I don't know if there are any updated tutorials for Parsec 3.
-- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
-- Regards Sumit Sahrawat
participants (3)
-
Brandon Allbery
-
Kattamuri Ekanadham
-
Sumit Sahrawat, Maths & Computing, IIT (BHU)