Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- eol :: GenParser Char state ()
- digit :: Integral a => GenParser Char state a
- natural :: Integral a => GenParser Char state a
- integer :: Integral a => GenParser Char state a
- caseInsensitiveChar :: Char -> GenParser Char state Char
- caseInsensitiveString :: String -> GenParser Char state String
- parseM :: MonadError m => (ParseError -> ErrorType m) -> GenParser t () a -> String -> [t] -> m a
Documentation
natural :: Integral a => GenParser Char state a Source #
A natural (i.e. non-negative integer) number, in decimal notation.
integer :: Integral a => GenParser Char state a Source #
An integer number, in decimal notation (possibly prefixed with "-").
caseInsensitiveChar :: Char -> GenParser Char state Char Source #
Parse the given character, or the same character in another case (upper or lower).
caseInsensitiveString :: String -> GenParser Char state String Source #
Parse the given string, but with any combination of upper and lower case characters.
parseM :: MonadError m => (ParseError -> ErrorType m) -> GenParser t () a -> String -> [t] -> m a Source #
Parsing function. Uses the MonadError
class to throw a monadic error
when parsing fails. (Useful in a stack of monad transformers from the
transformers package http://hackage.haskell.org/package/transformers.)