[project @ 2005-03-15 12:15:15 by malcolm]
[ghc-base.git] / GHC / TopHandler.lhs
index 6082a03..b1ac1b8 100644 (file)
@@ -14,6 +14,7 @@
 --
 -----------------------------------------------------------------------------
 
+-- #hide
 module GHC.TopHandler (
    runMainIO, runIO, runNonIO, reportStackOverflow, reportError
   ) where
@@ -58,6 +59,7 @@ topHandler err = catchException (real_handler err) topHandler
 --
 real_handler :: Exception -> IO a
 real_handler ex =
+  cleanUp >>
   case ex of
        AsyncException StackOverflow -> do
           reportStackOverflow