diff options
| author | Peter Hercek <phercek@gmail.com> | 2009-02-22 20:10:02 +0000 |
|---|---|---|
| committer | Peter Hercek <phercek@gmail.com> | 2009-02-22 20:10:02 +0000 |
| commit | 8f0034600a8a5fa507994646f96e63e2933a5330 (patch) | |
| tree | 212e2e67dde28c819728a37ac7197b5b4bbd96dd /compiler/ghci/InteractiveUI.hs | |
| parent | 47b550ecf0edcada00034925830a52603f3a87df (diff) | |
| download | haskell-8f0034600a8a5fa507994646f96e63e2933a5330.tar.gz | |
:steplocal and :stepmodule should not polute trace history
Diffstat (limited to 'compiler/ghci/InteractiveUI.hs')
| -rw-r--r-- | compiler/ghci/InteractiveUI.hs | 4 |
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 () |
