X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcSplice.lhs;h=a99bf8b9e24ef1f5247cc31abbc8d149d21dad3c;hb=02c48cf14cd8c7771dfb41089412f35e1eaeedd5;hp=b71294f0f981cd4cf95847b549dfc19475a4d14d;hpb=ab22f4e6456820c1b5169d75f5975a94e61f54ce;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcSplice.lhs b/compiler/typecheck/TcSplice.lhs index b71294f..a99bf8b 100644 --- a/compiler/typecheck/TcSplice.lhs +++ b/compiler/typecheck/TcSplice.lhs @@ -52,6 +52,7 @@ import ErrUtils import SrcLoc import Outputable import Unique +import DynFlags import PackageConfig import BasicTypes import Panic @@ -76,6 +77,7 @@ import Control.Monad ( liftM ) tcSpliceDecls :: LHsExpr Name -> TcM [LHsDecl RdrName] tcSpliceExpr :: HsSplice Name -> BoxyRhoType -> TcM (HsExpr TcId) kcSpliceType :: HsSplice Name -> TcM (HsType Name, TcKind) + -- None of these functions add constraints to the LIE #ifndef GHCI tcSpliceExpr n e ty = pprPanic "Cant do tcSpliceExpr without GHCi" (ppr e) @@ -362,8 +364,11 @@ runMeta :: (SrcSpan -> th_syn -> Either Message hs_syn) -> TcM hs_syn -- Of type t runMeta convert expr = do { -- Desugar +#if defined(GHCI) && defined(DEBUGGER) + ds_expr <- unsetOptM Opt_Debugging $ initDsTc (dsLExpr expr) +#else ds_expr <- initDsTc (dsLExpr expr) - +#endif -- Compile and link it; might fail if linking fails ; hsc_env <- getTopEnv ; src_span <- getSrcSpanM