# contravariant

> Contravariant functors for Haskell

Source: https://talira.ai/catalog/contravariant-2n3f835e
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / functional programming](https://talira.ai/categories/libraries/functional-programming), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Edward Kmett](https://talira.ai/orgs/edward-kmett.md)

contravariant is a Haskell library of contravariant functors (the Contravariant class and its instances), for types that consume values rather than produce them. It is by Edward Kmett and is published on Hackage.

## Links

- GitHub: https://github.com/ekmett/contravariant

## Problems it solves

- map over the input of a function-like type in Haskell with a Contravariant instance
- use contravariant functors in Haskell code that supports old GHC versions
- combine Haskell types that consume values the way Functor combines producers

## Features

- The Contravariant type class for contravariant functors
- Supports GHC from 8.0 to 9.14

## Trust

Overall: 0.28 out of 1.
Signals: maintenance 0.27, adoption 0.38, momentum 0.04, community 0.57, backing 0.30, extensibility 0.00.

- 75 GitHub stars
- 26 contributors
- backed by Edward Kmett

Warnings:

- last commit 10 months ago

## Alternatives

- [semigroupoids](https://talira.ai/catalog/semigroupoids-tq3kzmpx.md): id-free versions of Haskell's Category, Applicative, Monad and related type classes
- [adjunctions](https://talira.ai/catalog/adjunctions-7ydbnyw1.md): Adjunctions and representable functors for Haskell

## Sources

[^1]: https://github.com/ekmett/contravariant/blob/1.5/contravariant.cabal (checked 28 Nov 2026)
[^2]: https://github.com/ekmett/contravariant/blob/1.5/LICENSE (checked 28 Nov 2026)
