package popper
Module Popper.PropositionSource
Types
Primitives
fail ?loc pp is a failing proposition with location loc if given and printer pp for the error message
fail_with ?loc msg is a proposition that fails with location loc if given and message msg
equal ?loc cmp x y returns a proposition pass only if x and y are equal using the given comparator cmp. If loc is passed, it reports the location string in case of failure.
less_than ?loc cmp x y returns a proposition pass only if x is less than y when using the given compartor cmp. If loc is passed, it reports the location string in case of failure.
greater_than ?loc cmp x y returns a proposition pass only if x is greater than y when using the given compartor cmp. If loc is passed, it reports the location string in case of failure.
less_equal_than ?loc cmp x y returns a proposition pass only if x is less than or equal to y when using the given compartor cmp. If loc is passed, it reports the location string in case of failure.
greater_equal_than ?loc cmp x y returns a proposition pass only if x is greater than or equal to y when using the given compartor cmp. If loc is passed, it reports the location string in case of failure.
is_true ?loc b returns a proposition pass if b is true. Otherwise fail with location loc if given.
is_false ?loc b returns a proposition pass if b is false. Otherwise fail with location loc if given.
Combinators
all ps is a proposition that only passes if all given propositions in ps are pass.