Module
Text.Parsing.Combinators.Validation
- Package
- purescript-parsing-validationDEPRECATED
- Repository
- markfarrell/purescript-parsing-validation
#and Source
and :: forall a m b c. Monad m => ParserT a m b -> ParserT a m c -> ParserT a m (Tuple b c)
Attempts to validate the remaining parse input with a parser p
and a parser q
.
Fails if the validation of the remaining parse input with parsers p
and q
is unsuccessful.
Does not consume the remaining parse input.
#or Source
or :: forall a m b c. Monad m => ParserT a m b -> ParserT a m c -> ParserT a m (Either b c)
Attempts to validate the remaining parse input with a parser q
, or a parser p
if q
fails.
Fails if the validation of the remaining parse input with parsers p
or q
is unsuccessful.
Does not consume the remaining parse input.
#apply Source
apply :: forall a m f b c. Monad m => Traversable m => Applicative f => Traversable f => ParserT a m c -> ParserT b m (f a) -> ParserT b m (f c)
Fails if a result of running a parser p
against each value of a container produced by a parser q
is unsuccessful.
Does not consume the remaining parse input.