# constraints

> Data types and classes for GHC's ConstraintKinds

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

constraints is a Haskell library of data types and classes for manipulating the ConstraintKinds extension GHC has had since version 7.4: a vocabulary for working with constraints.

## Links

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

## Problems it solves

- work with type class constraints as data in Haskell
- manipulate constraints with ConstraintKinds in GHC
- store evidence of a type class instance in a Haskell data type

## Features

- data types for manipulating ConstraintKinds
- classes for working with constraints

## Trust

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

- 78 GitHub stars
- 32 contributors
- backed by Edward Kmett

Warnings:

- last commit 10 months ago

## Alternatives

- [comonad](https://talira.ai/catalog/comonad-919k76vr.md): Comonads for Haskell, the categorical dual of monads

## Sources

[^1]: https://github.com/ekmett/constraints/blob/main/README.markdown (checked 28 Nov 2026)
[^2]: https://github.com/ekmett/constraints/blob/main/LICENSE (checked 28 Nov 2026)
[^3]: https://github.com/ekmett/constraints/blob/main/constraints.cabal (checked 28 Nov 2026)
