TcUnify

ghc-7.8.3: The GHC API

Safe Haskell | None
Language | Haskell98

TcUnify

# Documentation

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

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

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

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

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

unifyType :: TcTauType -> TcTauType -> TcM TcCoercion Source

unifyTypeList :: [TcTauType] -> TcM () Source

unifyTheta :: TcThetaType -> TcThetaType -> TcM [TcCoercion] Source

unifyKindX :: TcKind -> TcKind -> TcM (Maybe Ordering) Source

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

matchExpectedListTy :: TcRhoType -> TcM (TcCoercion, TcRhoType) Source

matchExpectedPArrTy :: TcRhoType -> TcM (TcCoercion, TcRhoType) Source

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

matchExpectedAppTy :: TcRhoType -> TcM (TcCoercion, (TcSigmaType, TcSigmaType)) Source

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

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

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