Safe Haskell | Safe-Inferred |
---|
- module Control.Exception
- retry :: Int -> IO a -> IO a
- showException :: SomeException -> IO String
- ignore :: IO () -> IO ()
- catch_ :: IO a -> (SomeException -> IO a) -> IO a
- handle_ :: (SomeException -> IO a) -> IO a -> IO a
- try_ :: IO a -> IO (Either SomeException a)
- catchJust_ :: (SomeException -> Maybe b) -> IO a -> (b -> IO a) -> IO a
- handleJust_ :: (SomeException -> Maybe b) -> (b -> IO a) -> IO a -> IO a
- tryJust_ :: (SomeException -> Maybe b) -> IO a -> IO (Either b a)
- catchBool :: Exception e => (e -> Bool) -> IO a -> (e -> IO a) -> IO a
- handleBool :: Exception e => (e -> Bool) -> (e -> IO a) -> IO a -> IO a
- tryBool :: Exception e => (e -> Bool) -> IO a -> IO (Either e a)
Documentation
module Control.Exception
showException :: SomeException -> IO StringSource
Print an exception, but if that exception itself contains exceptions, simply print
<NestedException>
. Since Haskell is a lazy language it is possible to throw
exceptions that are themselves undefined. This function is useful to report them to users.
catchJust_ :: (SomeException -> Maybe b) -> IO a -> (b -> IO a) -> IO aSource
handleJust_ :: (SomeException -> Maybe b) -> (b -> IO a) -> IO a -> IO aSource