yael-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Yael.Eff.Error

Documentation

data Error e m Source #

Constructors

Error 

Fields

  • _throw :: forall a. e -> m a
     
  • _catch :: forall a. m a -> (e -> m a) -> m a
     

throw :: e -> a :+ '[Error e] Source #

catch :: HasEff (Error e) f m => EffT f m a -> (e -> EffT f m a) -> EffT f m a Source #

try :: HasEff (Error e) f m => EffT f m a -> EffT f m (Either e a) Source #