Module
Data.Divide
- Package
- purescript-contravariant
- Repository
- purescript/purescript-contravariant
#Divide Source
class (Contravariant f) <= Divide f where
Divide
is the contravariant analogue of Apply
.
For example, to test equality of Point
s, we can use the Divide
instance
for Equivalence
:
type Point = Tuple Int Int
pointEquiv :: Equivalence Point
pointEquiv = divided defaultEquivalence defaultEquivalence