haskpy.typeclasses.contravariant.Contravariant

Contravariant

class Contravariant

Bases: Type

Contravariant functor

Minimal complete definition:

  • contramap method

contramap(f)[source]

f b -> (a -> b) -> f a

contrareplace(x)[source]

f b -> b -> f a