X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fmain%2FInteractiveEval.hs;h=3173278e4833e6f7d7d5bc8cf9649500b704d0a7;hp=3530d78c41b0d0fa44642a22655cbae3e854e825;hb=99794f66b568709176dd9fc2248a57a21a165556;hpb=f17c76a4fc51a52ccda154ec9e4990f13f78c8c2 diff --git a/compiler/main/InteractiveEval.hs b/compiler/main/InteractiveEval.hs index 3530d78..3173278 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, @@ -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_decls modbreaks)) tick) - modBreaks_decls modbreaks ! tick - -- | Find the Module corresponding to a FilePath findModuleFromFile :: HscEnv -> FilePath -> Maybe Module findModuleFromFile hsc_env fp =