Skip to content

Instantly share code, notes, and snippets.

-- Parsec 3 tutorial code --
-- module Main where -- this isn't necessary
import Text.Parsec
import Text.Parsec.String (Parser) -- type Parser = Parsec String ()
import Text.Parsec.Expr
import qualified Text.Parsec.Token as P
import Text.Parsec.Language (haskellStyle)
import Data.Char