Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module defines a bunch of small parsers used to parse individual lexemes.
Synopsis
- type Parser = Parsec Void Text
- amp :: Parser Text
- at :: Parser ()
- bang :: Parser Text
- blockString :: Parser Text
- braces :: forall a. Parser a -> Parser a
- brackets :: forall a. Parser a -> Parser a
- colon :: Parser ()
- dollar :: Parser Text
- comment :: Parser ()
- equals :: Parser Text
- extend :: forall a. Text -> String -> NonEmpty (Parser a) -> Parser a
- integer :: Integral a => Parser a
- float :: Parser Double
- lexeme :: forall a. Parser a -> Parser a
- name :: Parser Text
- parens :: forall a. Parser a -> Parser a
- pipe :: Parser Text
- spaceConsumer :: Parser ()
- spread :: Parser Text
- string :: Parser Text
- symbol :: Text -> Parser Text
- unicodeBOM :: Parser ()
Documentation
blockString :: Parser Text Source #
Parser for block strings.
extend :: forall a. Text -> String -> NonEmpty (Parser a) -> Parser a Source #
Parses "extend" followed by a symbol
. It is used by schema extensions.
lexeme :: forall a. Parser a -> Parser a Source #
Lexeme definition which ignores whitespaces and commas.
spaceConsumer :: Parser () Source #
Parser that skips comments and meaningless characters, whitespaces and commas.
unicodeBOM :: Parser () Source #
Parser for the "Byte Order Mark".