X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FInteractiveEval.hs;h=3530d78c41b0d0fa44642a22655cbae3e854e825;hb=ab676aa34302b346cc05181100b46d8490023971;hp=9c28c8410647cf5aea008bd6a63109e3b7af09d0;hpb=24ee75415832b05f53726f2bbdf52972b1cfb613;p=ghc-hetmet.git diff --git a/compiler/main/InteractiveEval.hs b/compiler/main/InteractiveEval.hs index 9c28c84..3530d78 100644 --- a/compiler/main/InteractiveEval.hs +++ b/compiler/main/InteractiveEval.hs @@ -177,7 +177,7 @@ findEnclosingDeclSpanByTick hsc_env mod tick = Nothing -> panic "findEnclosingDecl" Just hmi -> let modbreaks = md_modBreaks (hm_details hmi) - in ASSERT (inRange (bounds modBreaks) tick) + in ASSERT (inRange (bounds (modBreaks_decls modbreaks)) tick) modBreaks_decls modbreaks ! tick -- | Find the Module corresponding to a FilePath