Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Exports functions to enhance the package polyparse.
Synopsis
- type TextParser = Parser Char
- char :: Char -> TextParser ()
- string :: String -> TextParser ()
- spaces :: TextParser ()
- unsignedDecimal :: Num i => TextParser i
Types
Type-synonyms
type TextParser = Parser Char Source #
Self-documentation.
Functions
char :: Char -> TextParser () Source #
Matches the specified char.
string :: String -> TextParser () Source #
- Matches the specified string.
- N.B. this differs from Text.Parse.word in that there's no requirement for the string to be a single Haskell lexical token.
spaces :: TextParser () Source #
- Matches any number (including zero) of consecutive spaces.
- CAVEAT: performance-hotspot.
unsignedDecimal :: Num i => TextParser i Source #
Parses an unsigned base-10 integer.