HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleparsec-3.1.18.0Haskell2010

Text.ParserCombinators.Parsec.Char

Parsec compatibility module

  • 1 type
  • 17 values
  • Packageparsec-3.1.18.0
  • Exports18
  • LanguageHaskell2010
  • LicenceBSD-2-Clause
  • SourceChar.hs
valuealphaNum :: Stream s m Char => ParsecT s u m Char
#

Parses a alphabetic or numeric Unicode characters according to isAlphaNum. Returns the parsed character.

Note that numeric digits outside the ASCII range (such as arabic-indic digits like e.g. "٤" or U+0664), as well as numeric characters which aren't digits, are parsed by this function but not by digit.

valueletter :: Stream s m Char => ParsecT s u m Char
#

Parses an alphabetic Unicode characters (lower-case, upper-case and title-case letters, plus letters of caseless scripts and modifiers letters according to isAlpha). Returns the parsed character.

valuehexDigit :: Stream s m Char => ParsecT s u m Char
#

Parses a hexadecimal digit (a digit or a letter between 'a' and 'f' or 'A' and 'F'). Returns the parsed character.

valuechar :: Stream s m Char => Char -> ParsecT s u m Char
#

char c parses a single character c. Returns the parsed character (i.e. c).

 semiColon  = char ';'
valueoneOf :: Stream s m Char => [Char] -> ParsecT s u m Char
#

oneOf cs succeeds if the current character is in the supplied list of characters cs. Returns the parsed character. See also satisfy.

  vowel  = oneOf "aeiou"
valuenoneOf :: Stream s m Char => [Char] -> ParsecT s u m Char
#

As the dual of oneOf, noneOf cs succeeds if the current character not in the supplied list of characters cs. Returns the parsed character.

 consonant = noneOf "aeiou"
valuesatisfy :: Stream s m Char => (Char -> Bool) -> ParsecT s u m Char
#

The parser satisfy f succeeds for any character for which the supplied function f returns True. Returns the character that is actually parsed.