Module

Text.Parsing.Parser.Expect

#success

success :: forall a m b. Monad m => Traversable m => a -> ParserT a m b -> Effect Unit

Asserts that the result of running a parser p with input x was successful.

#failure

failure :: forall a m b. Monad m => Traversable m => a -> ParserT a m b -> Effect Unit

Asserts that the result of running a parser p with input x was unsuccessful.

#output

output :: forall a m b. Monad m => Traversable m => Eq b => b -> a -> ParserT a m b -> Effect Unit

Asserts that the result of running a parser p with input x is w.

Modules