napkin-0.5.8
Safe HaskellNone
LanguageHaskell2010

Polysemy.Error.Extra

Documentation

orThrowErrorEM :: Member (Error e) r => Sem r (Either e' v) -> (e' -> e) -> Sem r v #

orThrowErrorM :: Member (Error e) r => Sem r (Maybe v) -> e -> Sem r v #

orThrowError :: Member (Error e) r => Maybe v -> e -> Sem r v #