--
-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))