summaryrefslogtreecommitdiff
path: root/compiler/ghci/InteractiveUI.hs
diff options
context:
space:
mode:
authorPeter Hercek <phercek@gmail.com>2009-02-22 20:10:02 +0000
committerPeter Hercek <phercek@gmail.com>2009-02-22 20:10:02 +0000
commit8f0034600a8a5fa507994646f96e63e2933a5330 (patch)
tree212e2e67dde28c819728a37ac7197b5b4bbd96dd /compiler/ghci/InteractiveUI.hs
parent47b550ecf0edcada00034925830a52603f3a87df (diff)
downloadhaskell-8f0034600a8a5fa507994646f96e63e2933a5330.tar.gz
:steplocal and :stepmodule should not polute trace history
Diffstat (limited to 'compiler/ghci/InteractiveUI.hs')
-rw-r--r--compiler/ghci/InteractiveUI.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ghci/InteractiveUI.hs b/compiler/ghci/InteractiveUI.hs
index 12a1713dde..9feae0e977 100644
--- a/compiler/ghci/InteractiveUI.hs
+++ b/compiler/ghci/InteractiveUI.hs
@@ -742,7 +742,7 @@ afterRunStmt step_here run_result = do
st <- getGHCiState
enqueueCommands [stop st]
return ()
- | otherwise -> resume GHC.SingleStep >>=
+ | otherwise -> resume step_here GHC.SingleStep >>=
afterRunStmt step_here >> return ()
_ -> return ()
@@ -1978,7 +1978,7 @@ continueCmd = noArgs $ doContinue (const True) GHC.RunToCompletion
-- doContinue :: SingleStep -> GHCi ()
doContinue :: (SrcSpan -> Bool) -> SingleStep -> GHCi ()
doContinue pred step = do
- runResult <- resume step
+ runResult <- resume pred step
afterRunStmt pred runResult
return ()