Safe Haskell | None |
---|---|
Language | Haskell2010 |
Template-Haskell-based combinators that let you select on constructors.
Documentation
isCaseOf :: Name -> Q Exp Source #
Create a predicate that returns true if its argument is the given constructor.
maybeCaseOf :: Name -> Q Exp Source #
Return Just (x, y, ..) for the constructor C x y .., or Nothing.