Use a recursive error handler in case the exception causes more exceptions.
authorLemmih <lemmih@gmail.com>
Mon, 17 Jul 2006 23:25:53 +0000 (23:25 +0000)
committerLemmih <lemmih@gmail.com>
Mon, 17 Jul 2006 23:25:53 +0000 (23:25 +0000)
compiler/ghci/InteractiveUI.hs

index c9de96f..55384bc 100644 (file)
@@ -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