The tutorial code on the Parsec site hasn’t been updated since 2001, and Parsec 3 was released early 2008. I’m posting code that works with the tutorial using GHC 6.8 here in case anyone else is a newbie struggling to make sense of haskell and parsec. The code doesn’t cover any of the advanced material, but should be enough to get you started.
ghc --make parsec3-tut.hs
Update: It looks like the hpaste code is dead so I posted the code to github gist instead which is awesome! The code doesn’t paste properly in wordpress cause it messes with the indentation.Read Full Post | Make a Comment ( 5 so far )