Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type Except tag e = ExceptT tag e Identity
- except :: Monad m => proxy tag -> Either e a -> ExceptT tag e m a
- runExcept :: proxy tag -> Except tag e a -> Either e a
- type ExceptT tag e = TaggedTrans tag (ExceptT e)
- exceptT :: proxy tag -> m (Either e a) -> ExceptT tag e m a
- runExceptT :: proxy tag -> ExceptT tag e m a -> m (Either e a)
- throw :: Monad m => proxy tag -> e -> ExceptT tag e m a
- catch :: Monad m => proxy tag -> ExceptT tag e m a -> (e -> ExceptT tag e m a) -> ExceptT tag e m a
The Except monad
except :: Monad m => proxy tag -> Either e a -> ExceptT tag e m a Source
Constructor for computations in the exception monad
(the inverse of runExcept
).
runExcept :: proxy tag -> Except tag e a -> Either e a Source
Runs an Except
and returns either an exception or a normal value.
The ExceptT monad transformer
type ExceptT tag e = TaggedTrans tag (ExceptT e) Source
exceptT :: proxy tag -> m (Either e a) -> ExceptT tag e m a Source
Constructor for computations in the exception monad transformer.
runExceptT :: proxy tag -> ExceptT tag e m a -> m (Either e a) Source
Runs an ExceptT
and returns either an exception or a normal value.