hw-polysemy-0.2.4.1: Opinionated polysemy library
Safe HaskellSafe-Inferred
LanguageGHC2021

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 #