| Safe Haskell | None |
|---|
Frenetic.Pattern
Documentation
class Eq a => Matchable a whereSource
A class for types that compose similar to wildcards.
All instances must satisfy the following:
-
matchdefines a partial order;topis the top element of this order andintersectis a meet. - Meets are exact: if
match x yandmatch x z, thenmatch x (fromJust (intersect y z)), if such a meet exists.
Minimal complete definition: top and intersect.