Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Auxiliary functions for the IO monad.
Synopsis
- class CatchIO m where
- catchIO :: m a -> (IOException -> m a) -> m a
Documentation
class CatchIO m where Source #
Catch IOException
s.
catchIO :: m a -> (IOException -> m a) -> m a Source #
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 :: StateT s m a -> (IOException -> StateT s m a) -> StateT s m a Source # | |
CatchIO m => CatchIO (WriterT w m) Source # | Upon exception, the written output is lost. |
Defined in Agda.Utils.IO catchIO :: WriterT w m a -> (IOException -> WriterT w m a) -> WriterT w m a Source # |