Module

Text.Parsing.StringParser.CodePoints

Primitive parsers for strings, parsing based on code points.

These functions will be much slower than the CodeUnits alternatives, but will behave correctly in the presence of Unicode characters made up of multiple code units.

#eof

eof :: Parser Unit

Match the end of the file.

#anyChar

anyChar :: Parser Char

Match any character.

#anyDigit

anyDigit :: Parser Char

Match any digit.

#string

string :: String -> Parser String

Match the specified string.

#satisfy

satisfy :: (Char -> Boolean) -> Parser Char

Match a character satisfying the given predicate.

#char

char :: Char -> Parser Char

Match the specified character.

#whiteSpace

whiteSpace :: Parser String

Match many whitespace characters.

#skipSpaces

skipSpaces :: Parser Unit

Skip many whitespace characters.

#oneOf

oneOf :: forall f. Foldable f => f Char -> Parser Char

Match one of the characters in the foldable structure.

#noneOf

noneOf :: forall f. Foldable f => f Char -> Parser Char

Match any character not in the foldable structure.

#lowerCaseChar

lowerCaseChar :: Parser Char

Match any lower case character.

#upperCaseChar

upperCaseChar :: Parser Char

Match any upper case character.

#anyLetter

anyLetter :: Parser Char

Match any letter.

#alphaNum

alphaNum :: Parser Char

Match a letter or a number.

#regex

regex :: String -> Parser String

match the regular expression

Modules