definitive-base-1.2.1: The base modules of the Definitive framework.

Safe HaskellNone

Algebra.Applicative

Description

A module describing applicative functors

Synopsis

Documentation

newtype Zip f a Source

A wrapper type for lists with zipping Applicative instances, such that Zip [f1,...,fn] <*> Zip [x1,...,xn] == Zip [f1 x1,...,fn xn]

Constructors

Zip 

Fields

deZip :: f a
 

Instances

newtype Backwards f a Source

A wrapper for applicative functors with actions executed in the reverse order

Constructors

Backwards 

Fields

forwards :: f a
 

(*>) :: Applicative f => f b -> f a -> f aSource

(<*) :: Applicative f => f a -> f b -> f aSource

(<**>) :: Applicative f => f (a -> b) -> f a -> f bSource

ap :: Applicative f => f (a -> b) -> f a -> f bSource

between :: Applicative f => f b -> f c -> f a -> f aSource

liftA :: Functor f => (a -> b) -> f a -> f bSource

liftA2 :: Applicative f => (a -> b -> c) -> f a -> f b -> f cSource

liftA3 :: Applicative f => (a -> b -> c -> d) -> f a -> f b -> f c -> f dSource

liftA4 :: Applicative f => (a -> b -> c -> d -> e) -> f a -> f b -> f c -> f d -> f eSource

forever :: Applicative f => f a -> f bSource

plusA :: (Applicative f, Semigroup a) => f a -> f a -> f aSource

zeroA :: (Unit f, Monoid a) => f aSource