projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
872a4a0
)
Use a recursive error handler in case the exception causes more exceptions.
author
Lemmih
<lemmih@gmail.com>
Mon, 17 Jul 2006 23:25:53 +0000
(23:25 +0000)
committer
Lemmih
<lemmih@gmail.com>
Mon, 17 Jul 2006 23:25:53 +0000
(23:25 +0000)
compiler/ghci/InteractiveUI.hs
patch
|
blob
|
history
diff --git
a/compiler/ghci/InteractiveUI.hs
b/compiler/ghci/InteractiveUI.hs
index
c9de96f
..
55384bc
100644
(file)
--- a/
compiler/ghci/InteractiveUI.hs
+++ b/
compiler/ghci/InteractiveUI.hs
@@
-523,7
+523,7
@@
runCommand c = ghciHandle handler (doCommand c)
runCommandEval c = ghciHandle handleEval (doCommand c)
where
handleEval (ExitException code) = io (exitWith code)
- handleEval e = do showException e
+ handleEval e = do handler e
io (exitWith (ExitFailure 1))
doCommand (':' : command) = specialCommand command