Module

Text.Parsing.Parser.Expect

Package
purescript-parsing-expect
Repository
markfarrell/purescript-parsing-expect

#success Source

success :: forall b m a. 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 Source

failure :: forall b m a. 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 Source

output :: forall b m a. 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.