Bookhound.ParserCombinators
class IsMatch a where Source #
Minimal complete definition
is, isNot, inverse
Methods
is :: a -> Parser a Source #
isNot :: a -> Parser a Source #
inverse :: Parser a -> Parser a Source #
oneOf :: [a] -> Parser a Source #
noneOf :: [a] -> Parser a Source #
Defined in Bookhound.ParserCombinators
is :: String -> Parser String Source #
isNot :: String -> Parser String Source #
inverse :: Parser String -> Parser String Source #
oneOf :: [String] -> Parser String Source #
noneOf :: [String] -> Parser String Source #
is :: Char -> Parser Char Source #
isNot :: Char -> Parser Char Source #
inverse :: Parser Char -> Parser Char Source #
oneOf :: [Char] -> Parser Char Source #
noneOf :: [Char] -> Parser Char Source #
satisfies :: (a -> Bool) -> Parser a -> Parser a Source #
contains :: Eq a => [a] -> Parser [a] -> Parser [a] Source #
notContains :: Eq a => [a] -> Parser [a] -> Parser [a] Source #
containsAnyOf :: (Foldable t, Eq a) => t [a] -> Parser [a] -> Parser [a] Source #
containsNoneOf :: (Foldable t, Eq a) => t [a] -> Parser [a] -> Parser [a] Source #
times :: Integer -> Parser a -> Parser [a] Source #
maybeTimes :: Parser a -> Parser (Maybe a) Source #
anyTimes :: Parser a -> Parser [a] Source #
someTimes :: Parser a -> Parser [a] Source #
multipleTimes :: Parser a -> Parser [a] Source #
within :: Parser a -> Parser b -> Parser b Source #
maybeWithin :: Parser a -> Parser b -> Parser b Source #
withinBoth :: Parser a -> Parser b -> Parser c -> Parser c Source #
maybeWithinBoth :: Parser a -> Parser b -> Parser c -> Parser c Source #
anySepBy :: Parser a -> Parser b -> Parser [b] Source #
someSepBy :: Parser a -> Parser b -> Parser [b] Source #
multipleSepBy :: Parser a -> Parser b -> Parser [b] Source #
sepByOp :: Parser a -> Parser b -> Parser (a, [b]) Source #
(<|>) :: Parser a -> Parser a -> Parser a infixl 3 Source #
(<?>) :: Parser a -> String -> Parser a infixl 6 Source #
(<#>) :: Parser a -> Integer -> Parser [a] infixl 6 Source #
(->>-) :: (ToString a, ToString b) => Parser a -> Parser b -> Parser String infixl 6 Source #
(|?) :: Parser a -> Parser (Maybe a) Source #
(|*) :: Parser a -> Parser [a] Source #
(|+) :: Parser a -> Parser [a] Source #
(|++) :: Parser a -> Parser [a] Source #