Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
A composable abstraction for checking or converting a context value.
run :: Matcher a b -> a -> Either Text b Source
Converts the matcher into a conversion function, which results in either a successful result or a failure.
equals :: Eq a => a -> Matcher a () Source
Tests the matched value on equality with the provided value.
satisfies :: (a -> Bool) -> Matcher a () Source
Checks whether the matched value satisfies the provided predicate.