| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Agda.Utils.IO
Description
Auxiliary functions for the IO monad.
Synopsis
- class CatchIO (m :: Type -> Type) where
- catchIO :: Exception e => m a -> (e -> m a) -> m a
- showIOException :: Exception e => e -> String
Documentation
class CatchIO (m :: Type -> Type) where Source #
Catch Exceptions in an extension of the IO monad.
Instances
| CatchIO IO Source # | Alias of |
Defined in Agda.Utils.IO | |
| CatchIO m => CatchIO (ExceptT e m) Source # | Upon exception, the error is lost. |
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.