Safe Haskell | None |
---|---|
Language | Haskell2010 |
HaskellWorks.CabalCache.IO.Error
Synopsis
- exceptFatal :: MonadIO m => ExceptT AppError m a -> ExceptT AppError m a
- exceptWarn :: MonadIO m => ExceptT AppError m a -> ExceptT AppError m a
- maybeToExcept :: Monad m => AppError -> Maybe a -> ExceptT AppError m a
- maybeToExceptM :: Monad m => AppError -> m (Maybe a) -> ExceptT AppError m a
- catchErrno :: [Errno] -> IO a -> IO a -> IO a
Documentation
Arguments
:: [Errno] | errno to catch |
-> IO a | action to try, which can raise an IOException |
-> IO a | action to carry out in case of an IOException and if errno matches |
-> IO a |
Carries out an action, then checks if there is an IOException and a specific errno. If so, then it carries out another action, otherwise it rethrows the error.