Copyright | (c) Fumiaki Kinoshita 2018 |
---|---|
License | BSD3 |
Maintainer | Fumiaki Kinoshita <fumiexcel@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Pattern matching
Documentation
matchWith :: (forall x. f x -> g x -> r) -> (xs :& f) -> (xs :/ g) -> r Source #
Retrieve the contents so that they matches and pass both to the given function.
Turn a wrapper type into a clause for it.
Instances
Wrapper h => Wrapper (Match h r :: k -> Type) Source # | |
Generic (Match h r x) Source # | |
Semigroup r => Semigroup (Match h r x) Source # | |
Monoid r => Monoid (Match h r x) Source # | |
type Repr (Match h r :: k -> Type) (x :: k) Source # | |
Defined in Data.Extensible.Match | |
type Rep (Match h r x) Source # | |
Defined in Data.Extensible.Match |