Module

Text.Parsing.Expect

#success

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

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

#failure

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

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

#output

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

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

Modules