30 Mar
2016
30 Mar
'16
12:26 p.m.
On Wednesday, March 30, 2016, Rustom Mody
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-libr... 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-pa... But unfortunately the original papers are somewhat out of date too.