# bifunctors

> Haskell bifunctors, bifoldables and bitraversables

Source: https://talira.ai/catalog/bifunctors-4w4dgqc2
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-2-Clause[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Edward Kmett](https://talira.ai/orgs/edward-kmett.md)

bifunctors is Edward Kmett's Haskell library of bifunctors, bifoldables and bitraversables: type classes for types with two type parameters you can map, fold or traverse over on both sides, with the usual combinators and instances. It's tested with GHC 8.0 to 9.14.

## Links

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

## Problems it solves

- map over both sides of an Either or a tuple in Haskell
- fold or traverse a two-parameter type in Haskell
- write Bifunctor instances for my own Haskell types

## Features

- bifunctor, bifoldable and bitraversable type classes
- combinators and instances for common two-parameter types
- Template Haskell deriving of Bifunctor, Bifoldable and Bitraversable instances
- tested with GHC 8.0 to 9.14

## Trust

Overall: 0.27 out of 1.
Signals: maintenance 0.27, adoption 0.36, momentum 0.04, community 0.58, backing 0.30, extensibility 0.00.

- 60 GitHub stars
- 27 contributors
- backed by Edward Kmett

Warnings:

- last commit 10 months ago

## Alternatives

- [profunctors](https://talira.ai/catalog/profunctors-q7jqpj7b.md): Profunctor type classes and constructions for Haskell
- [these](https://talira.ai/catalog/these-y1v47q74.md): Haskell's either-or-both data type, with Align for zipping with padding
- [indexed-traversable](https://talira.ai/catalog/indexed-traversable-85zf8der.md): FunctorWithIndex, FoldableWithIndex and TraversableWithIndex for Haskell

## Sources

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