Module
Text.Parsing.Simple
- Package
- purescript-simple-parser
- Repository
- Thimoteus/purescript-simple-parser
#ParseError Source
type ParseError = String
#parse Source
parse :: forall a s. Parser s a -> s -> Either ParseError a
Run a parser against an input, either getting an error or a value.
#unparser Source
unparser :: forall a s. Parser s a -> s -> { consumed :: Either ParseError a, remaining :: s }
Get the result of a parse, plus the unparsed input remainder.
#composeKleisliParser Source
composeKleisliParser :: forall c b a s. (b -> Parser s c) -> (a -> Parser s b) -> (a -> Parser s c)
#(<-<) Source
Operator alias for Text.Parsing.Simple.composeKleisliParser (right-associative / precedence 1)
#parserKleisliCompose Source
parserKleisliCompose :: forall c b a s. (a -> Parser s b) -> (b -> Parser s c) -> (a -> Parser s c)
#(>->) Source
Operator alias for Text.Parsing.Simple.parserKleisliCompose (right-associative / precedence 1)
#fail Source
fail :: forall a s. ParseError -> Parser s a
Fail with a message
#orFailWith Source
orFailWith :: forall a s. Parser s a -> ParseError -> Parser s a
#notFollowedBy Source
notFollowedBy :: forall a s. Parser s a -> Parser s Unit
Differs from isn't
in that this never consumes input.