State package:megaparsec

This is the Megaparsec's state parametrized over stream type s and custom error component type e.
Definition of Megaparsec's State.
The rest of input to process
Number of processed tokens so far
Collection of “delayed” ParseErrors in reverse order. This means that the last registered error is the first element of the list.
State that is used for line/column calculation
A special kind of state that is used to calculate line/column positions on demand.
Return the full parser state as a State record.
The rest of input to process
Prefix to prepend to offending line
Offset corresponding to beginning of pstateInput
Source position corresponding to beginning of pstateInput
Tab width to use for column calculation
setParserState st sets the parser state to st. See also: getParserState, updateParserState.
updateParserState f applies the function f to the parser state.
The state that is used for line/column calculation
Given the name of source file and the input construct the initial positional state.
Given the name of the source file and the input construct the initial state for a parser.