Safe Haskell | None |
---|---|
Language | Haskell2010 |
Auxiliary functions for the IO monad.
Synopsis
- class CatchIO (m :: Type -> Type) where
- catchIO :: m a -> (IOException -> m a) -> m a
- showIOException :: Exception e => e -> String
Documentation
class CatchIO (m :: Type -> Type) where Source #
Catch IOException
s.
Instances
CatchIO IO Source # | Alias of |
Defined in Agda.Utils.IO | |
CatchIO m => CatchIO (StateT s m) Source # | Upon exception, the state is reset. |
Defined in Agda.Utils.IO | |
CatchIO m => CatchIO (WriterT w m) Source # | Upon exception, the written output is lost. |
Defined in Agda.Utils.IO |
showIOException :: Exception e => e -> String Source #
Print an IOException
without the call stack.