hw-polysemy-0.2.9.0: Opinionated polysemy library
Safe HaskellSafe-Inferred
LanguageHaskell2010

HaskellWorks.Error

Documentation

onLeft :: forall e m a. Monad m => (e -> m a) -> Either e a -> m a Source #

onNothing :: forall a m. Monad m => m a -> Maybe a -> m a Source #

onLeftM :: forall e m a. Monad m => (e -> m a) -> m (Either e a) -> m a Source #

onNothingM :: forall a m. Monad m => m a -> m (Maybe a) -> m a Source #