X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FGHC.hs;h=4c14ff6338093305224eea31f5f5d1a2b8692bc4;hb=24ee75415832b05f53726f2bbdf52972b1cfb613;hp=1fc360550610223fc43c007f3f68728fc3c1097d;hpb=0731082288212fbc6d68204b609f201b8a79149a;p=ghc-hetmet.git diff --git a/compiler/main/GHC.hs b/compiler/main/GHC.hs index 1fc3605..4c14ff6 100644 --- a/compiler/main/GHC.hs +++ b/compiler/main/GHC.hs @@ -85,7 +85,8 @@ module GHC ( Resume(resumeStmt, resumeThreadId, resumeBreakInfo, resumeSpan, resumeHistory, resumeHistoryIx), History(historyBreakInfo, historyEnclosingDecl), - GHC.getHistorySpan, getHistoryModule, + GHC.getHistorySpan, getHistoryModule, getHistoryTick, + GHC.findEnclosingDeclSpanByTick, getResumeContext, abandon, abandonAll, InteractiveEval.back, @@ -1987,4 +1988,8 @@ findModule' hsc_env mod_name maybe_pkg = getHistorySpan :: Session -> History -> IO SrcSpan getHistorySpan sess h = withSession sess $ \hsc_env -> return$ InteractiveEval.getHistorySpan hsc_env h + +findEnclosingDeclSpanByTick :: Session -> Module -> BreakIndex -> IO SrcSpan +findEnclosingDeclSpanByTick sess m t = withSession sess $ \ hsc_env -> + return$ InteractiveEval.findEnclosingDeclSpanByTick hsc_env m t #endif