Clean-0.6: A light, clean and powerful utility library

Safe HaskellNone

Clean.Applicative

Description

A module describing applicative functors

Synopsis

Documentation

newtype ZipList a Source

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

Constructors

ZipList 

Fields

getZipList :: [a]
 

newtype ZipTree a Source

The Tree equivalent to ZipList

Constructors

ZipTree (Tree a) 

newtype Backwards f a Source

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

Constructors

Backwards 

Fields

forwards :: f a
 

Instances

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

(<*) :: Applicative f => f a1 -> f a -> f a1Source

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

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

liftA2 :: Applicative f => (a1 -> a -> b) -> f a1 -> f a -> f bSource

liftA3 :: Applicative f => (a2 -> a1 -> a -> b) -> f a2 -> f a1 -> f a -> f bSource

liftA4 :: Applicative f => (a3 -> a2 -> a1 -> a -> b) -> f a3 -> f a2 -> f a1 -> f a -> f bSource

plusA :: (Semigroup b, Applicative f) => f b -> f b -> f bSource

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