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

PortabilityHaskell98
Stabilityexperimental
Maintainernicolas.frisby@gmail.com

Control.Functor.Contra

Description

Yet another Cofunctor class declaration -- all the definitions on hackage carry so much luggage (which mostly subsumes the rest of this package)!

Documentation

class Cofunctor f whereSource

Methods

cofmap :: (b -> a) -> f a -> f bSource

Instances

Cofunctor V 
Cofunctor U 
Cofunctor (C b) 
Cofunctor (K r) 
Cofunctor (ff (Fix ff)) => Cofunctor (Fix ff) 
(Functor f, Cofunctor g) => Cofunctor (O f g) 
(Cofunctor f, Cofunctor g) => Cofunctor (S f g) 
(Cofunctor f, Cofunctor g) => Cofunctor (P f g) 
(Functor f, Cofunctor g) => Cofunctor (F f g) 
(Cofunctor f, Functor g) => Cofunctor (O f g)