Synopsis

# Documentation

newtype ParserState Source #

Constructors

 ParserState FieldsparserStateSince :: Maybe Version
Instances

Always succeeds, but returns Nothing if at the end of input. Does not consume input.

Fails if at the end of input. Does not consume input.

Parses the given string. Returns the parsed string.

Arguments

 :: (s -> Char -> Maybe s) scan function -> s initial state -> Parser Text

Scan the input text, accumulating characters as long as the scanning function returns true.

Apply a parser for a character zero or more times and collect the result in a string.

Apply a parser for a character one or more times and collect the result in a string.

decimal :: Integral a => Parser a Source #

Parse a decimal number.

hexadecimal :: (Integral a, Bits a) => Parser a Source #