[project @ 2000-12-12 17:21:40 by simonmar]
[ghc-hetmet.git] / ghc / tests / lib / should_run / enum02.hs
index 27be3fd..c04677d 100644 (file)
@@ -258,11 +258,4 @@ testEnumInt64 = do
 --
 
 
-mayBomb x = catchAllIO x errorHandler
-
-errorHandler :: Exception -> IO ()
-errorHandler e =
-  case justErrors e of
-    Just t -> putStrLn ("error " ++ show t)
-    _     -> return ()
+mayBomb x = catchJust errorCalls x (\e -> putStrLn ("error " ++ show e))