Module

Text.Parsing.Expect

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

#success Source

success :: forall b a. a -> Parser a b -> Effect Unit

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

#failure Source

failure :: forall b a. a -> Parser a b -> Effect Unit

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

#output Source

output :: forall b a. Eq b => b -> a -> Parser a b -> Effect Unit

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