effectful-0.0.0.0: A simple, yet powerful extensible effects library.
Safe HaskellNone
LanguageHaskell2010

Effectful.Error

Description

Support for checked exceptions.

Documentation

data Error e Source #

runError :: forall e es a. Exception e => Eff (Error e ': es) a -> Eff es (Either ([String], e) a) Source #

throwError :: (HasCallStack, Exception e, Error e :> es) => e -> Eff es a Source #

catchError :: (Exception e, Error e :> es) => Eff es a -> ([String] -> e -> Eff es a) -> Eff es a Source #

tryError :: (Exception e, Error e :> es) => Eff es a -> Eff es (Either ([String], e) a) Source #