X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcHsType.lhs;h=fcf329b8cb9d586f39d28566f9e32f7a88419d15;hb=bd8a952b1ec55c1c8fe6db968f8f0cc08596a550;hp=62c5eaacd5d6a05bb87be39afe7edc3b294d1b1b;hpb=836b1e90821aacc9d1e09fe78085f911597274c8;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcHsType.lhs b/compiler/typecheck/TcHsType.lhs index 62c5eaa..fcf329b 100644 --- a/compiler/typecheck/TcHsType.lhs +++ b/compiler/typecheck/TcHsType.lhs @@ -394,6 +394,9 @@ kc_hs_type (HsAppTy ty1 ty2) = do kc_hs_type (HsPredTy pred) = wrongPredErr pred +kc_hs_type (HsCoreTy ty) + = return (HsCoreTy ty, typeKind ty) + kc_hs_type (HsForAllTy exp tv_names context ty) = kcHsTyVars tv_names $ \ tv_names' -> do { ctxt' <- kcHsContext context @@ -628,6 +631,7 @@ ds_type (HsSpliceTy _ _ kind) ; newFlexiTyVarTy kind' } ds_type (HsQuasiQuoteTy {}) = panic "ds_type" -- Eliminated by renamer +ds_type (HsCoreTy ty) = return ty dsHsTypes :: [LHsType Name] -> TcM [Type] dsHsTypes arg_tys = mapM dsHsType arg_tys