Clean-0.4: 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

Unit f => Unit (Backwards f) 
Applicative f => Applicative (Backwards f) 
Functor f => Functor (Backwards f) 
Ring (f a) => Ring (Backwards f a) 
Monoid (f a) => Monoid (Backwards f a) 
Semigroup (f a) => Semigroup (Backwards f a) 

(*>) :: 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