18
The indents package for Haskell's Parsec provides a way to parse indentation-style languages (like Haskell and Python). It redefines the Parser type, so how do you use the token parser functions exported by Parsec's Text.Parsec.Token module, which are of the normal Parser type?
Background
- Parsec is a parser combinator library, whatever that means.
- IndentParser 0.2.1 is an old package providing the two modules
Text.ParserCombinators.Parsec.IndentParserandText.ParserCombinators.Parsec.IndentParser.Token - indents 0.3.3 is a new package providing the single module
Text.Parsec.Indent
Parsec comes with a load of modules. most of them export a bunch of useful parsers (e.g. newline from