Modules 25
Text.ParserCombinators.Parsec.Char
provisionalParsec compatibility module
spaces :: (Stream s m Char) => ParsecT s u m ()
Skips zero or more white space characters. See also skipMany.
space :: (Stream s m Char) => ParsecT s u m Char
Parses a white space character (any character which satisfies isSpace)
Returns the parsed character.
newline :: (Stream s m Char) => ParsecT s u m Char
Parses a newline character ('\n'). Returns a newline character.
tab :: (Stream s m Char) => ParsecT s u m Char
Parses a tab character ('\t'). Returns a tab character.
upper :: (Stream s m Char) => ParsecT s u m Char
Parses an upper case letter (according to isUpper).
Returns the parsed character.
lower :: (Stream s m Char) => ParsecT s u m Char
Parses a lower case character (according to isLower).
Returns the parsed character.
alphaNum :: (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.
letter :: (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.
digit :: (Stream s m Char) => ParsecT s u m Char
Parses an ASCII digit. Returns the parsed character.
hexDigit :: (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.
octDigit :: (Stream s m Char) => ParsecT s u m Char
Parses an octal digit (a character between '0' and '7'). Returns the parsed character.
char :: (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 ';'string :: (Stream s m Char) => String -> ParsecT s u m String
parses a sequence of characters given by string ss. Returns
the parsed string (i.e. s).
divOrMod = string "div"
<|> string "mod"Consider using string'.
anyChar :: (Stream s m Char) => ParsecT s u m Char
This parser succeeds for any character. Returns the parsed character.
oneOf :: (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"noneOf :: (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"satisfy :: (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.
- Maintainer
- derek.a.elkins@gmail.com
- Portability
- portable
- Copyright
- (c) Paolo Martini 2007
- License
- BSD-style (see the LICENSE file)
Build record and source files
Community contribution. The service has not verified this documentation. The generator reported 3 diagnostics.
Target: Linux on x86-64. Some inferred types and resolved links are not available.
Generator: aihc-haddock-858b1951-web-1
Metadata snapshot: 51a8c38adf37e9558e7835b04b20868626c044e2d2e98e3527943eabd1e09c0a
Open the dependency plan · Download the documentation model
- aihc-base-4.21.2.0 · Core library · Cabal file
- aihc-internal-9.1204.0 · Core library · Cabal file
- aihc-prim-0.13.0 · Core library · Cabal file
- aihc-rts-1.0.2 · Core library · Cabal file
- aihc-template-haskell-2.23.0.0 · Core library · Cabal file
- array-0.5.8.0 · Cabal revision 2 · Cabal file · Source archive
- binary-0.8.9.3 · Cabal revision 0 · Cabal file · Source archive
- bytestring-0.12.2.0 · Cabal revision 1 · Cabal file · Source archive
- containers-0.8.1 · Cabal revision 0 · Cabal file · Source archive
- deepseq-1.5.2.0 · Cabal revision 0 · Cabal file · Source archive
- mtl-2.3.2 · Cabal revision 1 · Cabal file · Source archive
- parsec-3.1.18.0 · Cabal revision 1 · Cabal file · Source archive
- system-cxx-std-lib-1.0 · Core library · Cabal file
- text-2.1.4 · Cabal revision 0 · Cabal file · Source archive
- transformers-0.6.3.0 · Cabal revision 2 · Cabal file · Source archive