Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- module HaskellWorks.Error
- trap :: forall e a r. (e -> Sem r a) -> Sem (Error e ': r) a -> Sem r a
- trap_ :: forall e a r. Sem r a -> Sem (Error e ': r) a -> Sem r a
- embedRunExceptT :: forall e a r m. Member (Embed m) r => ExceptT e m a -> Sem r (Either e a)
- embedThrowExceptT :: forall e a r m. Member (Error e) r => Member (Embed m) r => ExceptT e m a -> Sem r a
Documentation
module HaskellWorks.Error
trap_ :: forall e a r. Sem r a -> Sem (Error e ': r) a -> Sem r a Source #
Like trap
, but the error is not passed to the handler.