Cabal-3.4.0.0: A framework for packaging Haskell software
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.Compat.Exception

Synopsis

Documentation

catchIO :: IO a -> (IOException -> IO a) -> IO a Source #

Catch IOException.

catchExit :: IO a -> (ExitCode -> IO a) -> IO a Source #

Catch ExitCode

tryIO :: IO a -> IO (Either IOException a) Source #

Try IOException.

displayException :: Exception e => e -> String #

Render this exception value in a human-friendly manner.

Default implementation: show.

Since: base-4.8.0.0