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:
8a400d0
)
Unbreak usage of ASSERTM
author
Pepe Iborra
<mnislaih@gmail.com>
Tue, 9 Jan 2007 07:42:58 +0000
(07:42 +0000)
committer
Pepe Iborra
<mnislaih@gmail.com>
Tue, 9 Jan 2007 07:42:58 +0000
(07:42 +0000)
compiler/ghci/InteractiveUI.hs
patch
|
blob
|
history
diff --git
a/compiler/ghci/InteractiveUI.hs
b/compiler/ghci/InteractiveUI.hs
index
d18a75c
..
daf1185
100644
(file)
--- a/
compiler/ghci/InteractiveUI.hs
+++ b/
compiler/ghci/InteractiveUI.hs
@@
-1384,11
+1384,13
@@
handler :: Exception -> GHCi Bool
handler (DynException dyn)
| Just StopChildSession <- fromDynamic dyn
-- propagate to the parent session
handler (DynException dyn)
| Just StopChildSession <- fromDynamic dyn
-- propagate to the parent session
- = ASSERTM (liftM not isTopLevel) >> throwDyn StopChildSession
+ = do ASSERTM (liftM not isTopLevel)
+ throwDyn StopChildSession
| Just (ChildSessionStopped msg) <- fromDynamic dyn
-- Reload modules and display some message
| Just (ChildSessionStopped msg) <- fromDynamic dyn
-- Reload modules and display some message
- = ASSERTM (isTopLevel) >> io(putStrLn msg) >> return False
+ = do ASSERTM (isTopLevel)
+ io(putStrLn msg) >> return False
handler exception = do
flushInterpBuffers
handler exception = do
flushInterpBuffers