Module
Type.Quotient
- Package
- purescript-quotient
- Repository
- rightfold/purescript-quotient
Approximation of quotient types.
#Canonical Source
class Canonical a e | e -> a whereEquivalence relation disguised as a canonicalization function.
Members
Instances
#Quotient Source
newtype Quotient a eQuotient type with equivalence relation e. The runtime representation is
identical to that of a.
#mkQuotient Source
mkQuotient :: forall e a. a -> a / ePair a value with an equivalence relation.
#runQuotient Source
runQuotient :: forall e a. Canonical a e => a / e -> aCanonicalize a value using an equivalence relation such that the caller cannot observe distinct wrappees.
- Modules
- Type.
Quotient