Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data EitherEffect leftEffect rightEffect context result
- liftLeft :: left result -> EitherEffect left right either result
- liftRight :: right result -> EitherEffect left right either result
Documentation
data EitherEffect leftEffect rightEffect context result Source #
A sum of two effects. Allows for horizontal composition of monads instead of nesting as with monad transformers.
To execute it use eitherEffect
.
liftLeft :: left result -> EitherEffect left right either result Source #
Lift the first of the two effects.
liftRight :: right result -> EitherEffect left right either result Source #
Lift the second of the two effects.
Orphan instances
Monad either => Monad (EitherEffect left right either) Source # | |
Functor either => Functor (EitherEffect left right either) Source # | |
Applicative either => Applicative (EitherEffect left right either) Source # | |
MonadIO either => MonadIO (EitherEffect left right either) Source # | |