X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Ftypecheck%2FTcExpr.lhs;h=39e7e4057f4cb8a8cc64d65622e6ea217c3e74c6;hb=802b299f16593e95deb6cc2bd5d457444ed92fd1;hp=0f693717993a233fb8fe516c616ddb93377baa41;hpb=3355c9d53b220ccb110e5a3c81a1a8b2c9c41555;p=ghc-hetmet.git diff --git a/ghc/compiler/typecheck/TcExpr.lhs b/ghc/compiler/typecheck/TcExpr.lhs index 0f69371..39e7e40 100644 --- a/ghc/compiler/typecheck/TcExpr.lhs +++ b/ghc/compiler/typecheck/TcExpr.lhs @@ -13,7 +13,6 @@ import {-# SOURCE #-} TcSplice( tcSpliceExpr, tcBracket ) import HsSyn ( HsReify(..), ReifyFlavour(..) ) import TcType ( isTauTy ) import TcEnv ( bracketOK, tcMetaTy, checkWellStaged, metaLevel ) -import TcSimplify ( tcSimplifyBracket ) import Name ( isExternalName ) import qualified DsMeta #endif @@ -174,7 +173,8 @@ tcMonoExpr (HsPar expr) res_ty = tcMonoExpr expr res_ty `thenM` \ expr' -> tcMonoExpr (HsSCC lbl expr) res_ty = tcMonoExpr expr res_ty `thenM` \ expr' -> returnM (HsSCC lbl expr') - +tcMonoExpr (HsCoreAnn lbl expr) res_ty = tcMonoExpr expr res_ty `thenM` \ expr' -> -- hdaume: core annotation + returnM (HsCoreAnn lbl expr') tcMonoExpr (NegApp expr neg_name) res_ty = tcMonoExpr (HsApp (HsVar neg_name) expr) res_ty -- ToDo: use tcSyntaxName @@ -616,7 +616,7 @@ tcMonoExpr (PArrSeqIn _) _ -- Rename excludes these cases otherwise tcMonoExpr (HsSplice n expr loc) res_ty = addSrcLoc loc (tcSpliceExpr n expr res_ty) -tcMonoExpr (HsBracket brack loc) res_ty = addSrcLoc loc (tcBracket brack) +tcMonoExpr (HsBracket brack loc) res_ty = addSrcLoc loc (tcBracket brack res_ty) tcMonoExpr (HsReify (Reify flavour name)) res_ty = addErrCtxt (ptext SLIT("At the reification of") <+> ppr name) $