Char -pretty +parsec

module Text.Parsec.Char
parsec Text.Parsec.Char
Commonly used character parsers.
module Text.ParserCombinators.Parsec.Char
parsec Text.ParserCombinators.Parsec.Char
Parsec compatibility module
type CharParser st = GenParser Char st
parsec Text.ParserCombinators.Parsec.Char
char :: Stream s m Char => Char -> ParsecT s u m Char
parsec Text.Parsec.Char, parsec Text.ParserCombinators.Parsec.Char
char c parses a single character c. Returns the parsed character (i.e. c). > semiColon = char ';'
charLiteral :: GenTokenParser s u m -> ParsecT s u m Char
parsec Text.Parsec.Token, parsec Text.ParserCombinators.Parsec.Token
This lexeme parser parses a single literal character. Returns the literal character value. This parsers deals correctly with escape sequences. The literal character is parsed according to the grammar rules defined in the Haskell report (which matches most programming languages quite closely).
anyChar :: Stream s m Char => ParsecT s u m Char
parsec Text.Parsec.Char, parsec Text.ParserCombinators.Parsec.Char
This parser succeeds for any character. Returns the parsed character.
updatePosChar :: SourcePos -> Char -> SourcePos
parsec Text.Parsec.Pos, parsec Text.ParserCombinators.Parsec.Pos
Update a source position given a character. If the character is a newline ('\n') or carriage return ('\r') the line number is incremented by 1. If the character is a tab ('t') the column number is incremented to the nearest 8'th column, ie. column + 8 - ((column-1) `mod` 8). In all other cases, the column is incremented by 1.