haddock-library-1.6.1: Library exposing some functionality of Haddock.

Safe HaskellNone
LanguageHaskell2010

Documentation.Haddock.Parser.Monad

Synopsis

Documentation

peekChar :: Parser (Maybe Char) Source #

Always succeeds, but returns Nothing if at the end of input. Does not consume input.

peekChar' :: Parser Char Source #

Fails if at the end of input. Does not consume input.

string :: Text -> Parser Text Source #

Parses the given string. Returns the parsed string.

scan Source #

Arguments

:: (s -> Char -> Maybe s)

scan function

-> s

initial state

-> Parser Text 

Scan the input text, accumulating characters as long as the scanning function returns true.

takeWhile :: Parser Char -> Parser Text Source #

Apply a parser for a character zero or more times and collect the result in a string.

takeWhile1 :: Parser Char -> Parser Text Source #

Apply a parser for a character one or more times and collect the result in a string.

decimal :: Integral a => Parser a Source #

Parse a decimal number.

hexadecimal :: (Integral a, Bits a) => Parser a Source #

Parse a hexadecimal number.