| Safe Haskell | Safe-Inferred |
|---|
Data.Predicate
Documentation
class Predicate p a whereSource
The Predicate class declares the function apply which
evaluates the predicate against some value, returning a value
of type Boolean.
Besides being parameterised over predicate type and predicate
parameter, the class is also parameterised over the actual types
of T's and F's meta-data.
Instances
| Predicate Param Request | |
| Predicate AcceptThrift Request | |
| Predicate AcceptJson Request | |
| Predicate Accept Request | |
| (Predicate a c, Predicate b c, ~ * (FVal a) (FVal b)) => Predicate (:&: a b) c | |
| (Predicate a c, Predicate b c, ~ * (FVal a) (FVal b)) => Predicate (:||: a b) c | |
| (Predicate a c, Predicate b c, ~ * (TVal a) (TVal b), ~ * (FVal a) (FVal b)) => Predicate (:|: a b) c | |
| Predicate (Fail f t) a | |
| Predicate (Const f t) a |
A Predicate instance corresponding to the logical
OR connective of two Predicates. It requires the
meta-data of each True branch to be of the same type.
Constructors
| a :|: b |
A Predicate instance corresponding to the logical
OR connective of two Predicates. The meta-data of
each True branch can be of different types.
Constructors
| a :||: b |