MODULE REFERENCE
Text.Parser
Small parsers that compose into larger parsers.
SYNOPSIS
IMPORTSData.Result
Types and classes
opaque Parser aA parser that either produces a value or reports a position and expectation.
data ParseErrorA source position and the expectations that were not met.
Functions and values
parse :: forall a. Parser a -> String -> Result ParseError aRun a parser and require it to consume the full input.
integer :: Parser IntParse a signed decimal integer.
EXAMPLE
parse integer "-42"
-- Ok (-42)