functor-apply-0.9.0: Strong lax semimonoidal endofunctors (Applicative sans pure)

Portabilityportable
Stabilityprovisional
MaintainerEdward Kmett <ekmett@gmail.com>

Data.Functor.Bind

Description

 

Documentation

class Apply m => Bind m whereSource

Methods

(>>-) :: m a -> (a -> m b) -> m bSource

join :: m (m a) -> m aSource

Instances

Bind [] 
Bind IO 
Bind Maybe 
Bind Tree 
Bind Seq 
Bind IntMap

An IntMap is not Applicative, but it is an instance of Apply

Bind Option 
Bind Identity 
Bind ((->) m) 
Bind (Either a) 
Semigroup m => Bind ((,) m) 
Monad m => Bind (WrappedMonad m) 
Ord k => Bind (Map k)

A Map is not Applicative, but it is an instance of Apply

Bind w => Bind (IdentityT w) 

(-<<) :: Bind m => (a -> m b) -> m a -> m bSource

(-<-) :: Bind m => (b -> m c) -> (a -> m b) -> a -> m cSource

(->-) :: Bind m => (a -> m b) -> (b -> m c) -> a -> m cSource

apDefault :: Bind f => f (a -> b) -> f a -> f bSource