JustParse-2.1: A simple and comprehensive Haskell parsing library

Portabilityportable
Stabilityexperimental
Maintainergrantslatton@gmail.com
Safe HaskellSafe

Data.JustParse.Char

Description

Several useful parsers for dealing with Strings.

Synopsis

Documentation

char :: Stream s Char => Char -> Parser s CharSource

Parse a specic char.

anyChar :: Stream s Char => Parser s CharSource

Parse any char.

caseInsensitiveChar :: Stream s Char => Char -> Parser s CharSource

Parse a specific char, ignoring case.

ascii :: Stream s Char => Parser s CharSource

Parse any char that is ASCII.

latin1 :: Stream s Char => Parser s CharSource

Parse any char that is Latin-1.

control :: Stream s Char => Parser s CharSource

Parse a control character.

space :: Stream s Char => Parser s CharSource

Parse a space.

lower :: Stream s Char => Parser s CharSource

Parse a lowercase character.

upper :: Stream s Char => Parser s CharSource

Parse an uppercase character.

alpha :: Stream s Char => Parser s CharSource

Parse an alphabetic character.

alphaNum :: Stream s Char => Parser s CharSource

Parse an alphanumeric character.

print :: Stream s Char => Parser s CharSource

Parse a printable (non-control) character.

digit :: Stream s Char => Parser s CharSource

Parse a digit.

octDigit :: Stream s Char => Parser s CharSource

Parse an octal digit.

hexDigit :: Stream s Char => Parser s CharSource

Parse a hexadeciaml digit.

string :: Stream s Char => String -> Parser s StringSource

Parse a specific string.

caseInsensitiveString :: Stream s Char => String -> Parser s StringSource

Parse a specfic string, ignoring case.

eol :: Stream s Char => Parser s StringSource

Parses until a newline, carriage return + newline, or newline + carriage return.