Unbreak usage of ASSERTM
authorPepe Iborra <mnislaih@gmail.com>
Tue, 9 Jan 2007 07:42:58 +0000 (07:42 +0000)
committerPepe Iborra <mnislaih@gmail.com>
Tue, 9 Jan 2007 07:42:58 +0000 (07:42 +0000)
compiler/ghci/InteractiveUI.hs

index d18a75c..daf1185 100644 (file)
@@ -1384,11 +1384,13 @@ handler :: Exception -> GHCi Bool
 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
-  = ASSERTM (isTopLevel) >> io(putStrLn msg) >> return False
+  = do ASSERTM (isTopLevel) 
+       io(putStrLn msg) >> return False
 
 handler exception = do
   flushInterpBuffers