star-to-star-contra-1.0: contravariant instances for * -> * types and operators.

Portabilitysee LANGUAGE pragmas
Stabilityexperimental
Maintainernicolas.frisby@gmail.com

Data.StarToStar.Contra

Description

Instances for the fundamental * -> * types that require contravariance. Another O is defined to disambiguate the two valid Functor and Cofunctor instances.

Documentation

newtype O f g a Source

Constructors

O (f (g a)) 

Instances

(Cofunctor f, Cofunctor g) => Functor (O f g) 
(Cofunctor f, Functor g) => Cofunctor (O f g) 

onO :: (f (g a) -> b) -> O f g a -> bSource

underO :: (f (g a) -> h (i b)) -> O f g a -> O h i bSource

toO :: f (g a) -> O f g aSource

fromO :: O f g a -> f (g a)Source