Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
monad via MonadCatch.
Synopsis
- data Except m a where
- catchEx :: forall r e a. (Member Except r, Exception e) => Sem r a -> (e -> Sem r a) -> Sem r a
- throwEx :: forall r e a. (Member Except r, Exception e) => e -> Sem r a
- catchExToFinal :: forall a r m. MonadCatch m => MonadThrow m => Member (Final m) r => Sem (Except ': r) a -> Sem r a
- catchExToFinalIO :: forall a r. Member (Final IO) r => Sem (Except ': r) a -> Sem r a
Effect
Actions
catchEx :: forall r e a. (Member Except r, Exception e) => Sem r a -> (e -> Sem r a) -> Sem r a Source #
Interpretations
catchExToFinal :: forall a r m. MonadCatch m => MonadThrow m => Member (Final m) r => Sem (Except ': r) a -> Sem r a Source #