TcUnify

ghc-7.0.4: The GHC API

TcUnify

# Documentation

tcWrapResult :: HsExpr TcId -> TcRhoType -> TcRhoType -> TcM (HsExpr TcId)

tcSubType :: CtOrigin -> UserTypeCtxt -> TcSigmaType -> TcSigmaType -> TcM HsWrapper

tcGen :: UserTypeCtxt -> TcType -> ([TcTyVar] -> TcRhoType -> TcM result) -> TcM (HsWrapper, result)

checkConstraints :: SkolemInfo -> [TcTyVar] -> [EvVar] -> TcM result -> TcM (TcEvBinds, result)

newImplication :: SkolemInfo -> [TcTyVar] -> [EvVar] -> TcM result -> TcM (TcEvBinds, result)

sigCtxt :: Id -> [TcTyVar] -> TcThetaType -> TcTauType -> TidyEnv -> TcM (TidyEnv, Message)

unifyType :: TcTauType -> TcTauType -> TcM CoercionI

unifyTypeList :: [TcTauType] -> TcM ()

unifyTheta :: TcThetaType -> TcThetaType -> TcM [CoercionI]

unifyKind :: TcKind -> TcKind -> TcM ()

tcInfer :: (TcType -> TcM a) -> TcM (a, TcType)

matchExpectedListTy :: TcRhoType -> TcM (CoercionI, TcRhoType)

matchExpectedPArrTy :: TcRhoType -> TcM (CoercionI, TcRhoType)

matchExpectedTyConApp :: TyCon -> TcRhoType -> TcM (CoercionI, [TcSigmaType])

matchExpectedAppTy :: TcRhoType -> TcM (CoercionI, (TcSigmaType, TcSigmaType))

matchExpectedFunTys :: SDoc -> Arity -> TcRhoType -> TcM (CoercionI, [TcSigmaType], TcRhoType)

matchExpectedFunKind :: TcKind -> TcM (Maybe (TcKind, TcKind))

wrapFunResCoercion :: [TcType] -> HsWrapper -> TcM HsWrapper