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

UnliftIO.Exception.Lens

Description

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

Synopsis

Documentation

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

catching using MonadUnliftIO

Since: 0.2.25.0

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

catching_ using MonadUnliftIO

Since: 0.2.25.0

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

handling using MonadUnliftIO

Since: 0.2.25.0

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

handling_ using MonadUnliftIO

Since: 0.2.25.0

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

trying using MonadUnliftIO

Since: 0.2.25.0

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

trying_ using MonadUnliftIO

Since: 0.2.25.0