Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Combining effects where both input effects are used as much as possible.
as opposed to Alternative
where only the "successful" effect is used.
also :: f a -> f a -> f a infixr 6 Source #
An associative binary operation, where both input effects are used as much as possible.
The identity of also
Instances
Monoid a => Also IO a Source # | |
(Monoid a, Applicative f) => Also f a Source # | Overlappable instance for all Applicatives of Monoids. |
Monoid a => Also Identity a Source # | |
Also m (Maybe a) => Also (MaybeT m) a Source # | |
Also m a => Also (IdentityT m) a Source # | |
Also m (Either e a) => Also (ExceptT e m) a Source # | |
(Also m a, Monad m) => Also (StateT s m) a Source # | State instances threads the state through both monad of |
(Also m a, Monad m) => Also (StateT s m) a Source # | State instances threads the state through both monad of |
(Monoid w, Also m a, Monad m) => Also (WriterT w m) a Source # | Writer instances threads the writer through both monad of |
(Monoid w, Also m a, Monad m) => Also (WriterT w m) a Source # | Writer instances threads the writer through both monad of |
Also m r => Also (ContT r m) a Source # | Combine the monads that returns |
Also m a => Also (ReaderT r m) a Source # | |
(Monoid w, Also m a, Monad m) => Also (RWST r w s m) a Source # | State instances threads the state through both monad of |
(Monoid w, Also m a, Monad m) => Also (RWST r w s m) a Source # | State instances threads the state through both monad of |
Instances
Monad f => Monad (Als f) Source # | |
Functor f => Functor (Als f) Source # | |
Applicative f => Applicative (Als f) Source # | |
Alternative f => Alternative (Als f) Source # | |
MonadPlus f => MonadPlus (Als f) Source # | |
Generic1 (Als f :: * -> *) Source # | |
Enum (f a) => Enum (Als f a) Source # | |
Eq (f a) => Eq (Als f a) Source # | |
Num (f a) => Num (Als f a) Source # | |
Ord (f a) => Ord (Als f a) Source # | |
Read (f a) => Read (Als f a) Source # | |
Show (f a) => Show (Als f a) Source # | |
Generic (Als f a) Source # | |
Also f a => Semigroup (Als f a) Source # | |
Also f a => Monoid (Als f a) Source # | |
Newtype (Als f a) Source # | |
type Rep1 (Als f :: * -> *) Source # | |
Defined in Control.Also | |
type Rep (Als f a) Source # | |
Defined in Control.Also | |
type O (Als f a) Source # | |
Defined in Control.Also |