| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Match
Documentation
Arguments
| :: [MatchId] | Variables rep'ing the exprs we're matching with ^ See Note [Match Ids] |
| -> Type | Type of the case expression |
| -> [EquationInfo] | Info about patterns, etc. (type synonym below) |
| -> DsM MatchResult | Desugared result! |
matchEquations :: HsMatchContext Name -> [MatchId] -> [EquationInfo] -> Type -> DsM CoreExpr Source #
matchSinglePat :: CoreExpr -> HsMatchContext Name -> LPat GhcTc -> Type -> MatchResult -> DsM MatchResult Source #
matchSinglePatVar :: Id -> HsMatchContext Name -> LPat GhcTc -> Type -> MatchResult -> DsM MatchResult Source #