TcMatches

ghc-7.8.3: The GHC API

Safe Haskell | None
Language | Haskell98

TcMatches

# Documentation

tcMatchesFun :: Name -> Bool -> MatchGroup Name (LHsExpr Name) -> TcSigmaType -> TcM (HsWrapper, MatchGroup TcId (LHsExpr TcId)) Source

tcGRHS :: TcMatchCtxt body -> TcRhoType -> GRHS Name (Located (body Name)) -> TcM (GRHS TcId (Located (body TcId))) Source

tcGRHSsPat :: GRHSs Name (LHsExpr Name) -> TcRhoType -> TcM (GRHSs TcId (LHsExpr TcId)) Source

tcMatchesCase :: Outputable (body Name) => TcMatchCtxt body -> TcRhoType -> MatchGroup Name (Located (body Name)) -> TcRhoType -> TcM (MatchGroup TcId (Located (body TcId))) Source

tcMatchLambda :: MatchGroup Name (LHsExpr Name) -> TcRhoType -> TcM (HsWrapper, MatchGroup TcId (LHsExpr TcId)) Source

data TcMatchCtxt body Source

Constructors

MC |
Fields mc_what :: HsMatchContext Name mc_body :: Located (body Name) -> TcRhoType -> TcM (Located (body TcId))

type TcStmtChecker body = forall thing. HsStmtContext Name -> Stmt Name (Located (body Name)) -> TcRhoType -> (TcRhoType -> TcM thing) -> TcM (Stmt TcId (Located (body TcId)), thing) Source

type TcExprStmtChecker = TcStmtChecker HsExpr Source

type TcCmdStmtChecker = TcStmtChecker HsCmd Source

tcStmts :: Outputable (body Name) => HsStmtContext Name -> TcStmtChecker body -> [LStmt Name (Located (body Name))] -> TcRhoType -> TcM [LStmt TcId (Located (body TcId))] Source

tcStmtsAndThen :: Outputable (body Name) => HsStmtContext Name -> TcStmtChecker body -> [LStmt Name (Located (body Name))] -> TcRhoType -> (TcRhoType -> TcM thing) -> TcM ([LStmt TcId (Located (body TcId))], thing) Source

tcDoStmts :: HsStmtContext Name -> [LStmt Name (LHsExpr Name)] -> TcRhoType -> TcM (HsExpr TcId) Source

tcBody :: LHsExpr Name -> TcRhoType -> TcM (LHsExpr TcId) Source

tcDoStmt :: TcExprStmtChecker Source

tcGuardStmt :: TcExprStmtChecker Source