X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FInteractiveEval.hs;h=56dfbbd3481a326fd25007bc4cd8d180947fcc1a;hb=98e1486635c889e023097d63da0c9b68393de1fd;hp=9c28c8410647cf5aea008bd6a63109e3b7af09d0;hpb=24ee75415832b05f53726f2bbdf52972b1cfb613;p=ghc-hetmet.git diff --git a/compiler/main/InteractiveEval.hs b/compiler/main/InteractiveEval.hs index 9c28c84..56dfbbd 100644 --- a/compiler/main/InteractiveEval.hs +++ b/compiler/main/InteractiveEval.hs @@ -13,10 +13,8 @@ module InteractiveEval ( resume, abandon, abandonAll, getResumeContext, - getHistoryTick, getHistorySpan, getHistoryModule, - findEnclosingDeclSpanByTick, back, forward, setContext, getContext, nameSetToGlobalRdrEnv, @@ -31,7 +29,7 @@ module InteractiveEval ( isModuleInterpreted, compileExpr, dynCompileExpr, lookupName, - obtainTerm, obtainTerm1, reconstructType, + Term(..), obtainTerm, obtainTerm1, reconstructType, skolemiseSubst, skolemiseTy #endif ) where @@ -144,9 +142,6 @@ mkHistory hsc_env hval bi = let (getHistorySpan hsc_env h) in h -getHistoryTick :: History -> BreakIndex -getHistoryTick = breakInfo_number . historyBreakInfo - getHistoryModule :: History -> Module getHistoryModule = breakInfo_module . historyBreakInfo @@ -170,16 +165,6 @@ findEnclosingDecl hsc_env mod span = -- ^^ assumes md_types is sorted in decl --- | Finds the span of the (smallest) function containing this BreakIndex -findEnclosingDeclSpanByTick :: HscEnv -> Module -> BreakIndex -> SrcSpan -findEnclosingDeclSpanByTick hsc_env mod tick = - case lookupUFM (hsc_HPT hsc_env) (moduleName mod) of - Nothing -> panic "findEnclosingDecl" - Just hmi -> let - modbreaks = md_modBreaks (hm_details hmi) - in ASSERT (inRange (bounds modBreaks) tick) - modBreaks_decls modbreaks ! tick - -- | Find the Module corresponding to a FilePath findModuleFromFile :: HscEnv -> FilePath -> Maybe Module findModuleFromFile hsc_env fp =