Copyright | (c) Fumiaki Kinoshita 2017 |
---|---|
License | BSD3 |
Maintainer | Fumiaki Kinoshita <fumiexcel@gmail.com> |
Safe Haskell | Safe |
Language | Haskell2010 |
Pattern matching
Documentation
matchWith :: (forall x. f x -> g x -> r) -> (f :* xs) -> (g :| xs) -> 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.