unliftio-0.2.25.0: The MonadUnliftIO typeclass for unlifting monads to IO (batteries included)

Safe Haskell | None
Language | Haskell2010

UnliftIO.Exception.Lens

Description

Functions from Control.Exception.Lens, but using `MonadUnliftIO`, not `MonadCatch`

Synopsis

- catching :: MonadUnliftIO m => Getting (First a) SomeException a -> m r -> (a -> m r) -> m r
- catching_ :: MonadUnliftIO m => Getting (First a) SomeException a -> m r -> m r -> m r
- handling :: MonadUnliftIO m => Getting (First a) SomeException a -> (a -> m r) -> m r -> m r
- handling_ :: MonadUnliftIO m => Getting (First a) SomeException a -> m r -> m r -> m r
- trying :: MonadUnliftIO m => Getting (First a) SomeException a -> m r -> m (Either a r)
- trying_ :: MonadUnliftIO m => Getting (First a) SomeException a -> m r -> m (Maybe r)

# Documentation

catching :: MonadUnliftIO m => Getting (First a) SomeException a -> m r -> (a -> m r) -> m r #

`catching` using `MonadUnliftIO`

Since: 0.2.25.0

catching_ :: MonadUnliftIO m => Getting (First a) SomeException a -> m r -> m r -> m r #

`catching_` using `MonadUnliftIO`

Since: 0.2.25.0

handling :: MonadUnliftIO m => Getting (First a) SomeException a -> (a -> m r) -> m r -> m r #

`handling` using `MonadUnliftIO`

Since: 0.2.25.0

handling_ :: MonadUnliftIO m => Getting (First a) SomeException a -> m r -> m r -> m r #

`handling_` using `MonadUnliftIO`

Since: 0.2.25.0

trying :: MonadUnliftIO m => Getting (First a) SomeException a -> m r -> m (Either a r) #

`trying` using `MonadUnliftIO`

Since: 0.2.25.0

trying_ :: MonadUnliftIO m => Getting (First a) SomeException a -> m r -> m (Maybe r) #

`trying_` using `MonadUnliftIO`

Since: 0.2.25.0