# Cabal

> System for building and packaging Haskell libraries and programs

Source: https://talira.ai/catalog/cabal-rjaw57bd
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / build / build systems](https://talira.ai/categories/developer-tools/build/build-systems), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Platforms: linux, macos, windows[^4]
- Licence: BSD-3-Clause[^3]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Backed by: [Cabal Development Team](https://talira.ai/orgs/cabal-dev-team.md)

Cabal (Common Architecture for Building Applications and Libraries) is the standard system for building and packaging [Haskell](https://talira.ai/catalog/haskell-jjq1dx6f.md) libraries and programs. The name covers the .cabal package description format, the Cabal library that reads it, and cabal-install, which provides the cabal command most people mean. The cabal command creates projects (cabal init), resolves and downloads dependencies from Hackage, and builds, runs, tests and installs packages, including multi-package projects. The recommended way to install it is GHCup, which manages versions of cabal and GHC.

## Links

- Website: https://www.haskell.org/cabal/
- GitHub: https://github.com/haskell/cabal
- Docs: https://cabal.readthedocs.io/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/cabal-install>[^1]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/cabal>[^2]

## Problems it solves

- build a Haskell project and fetch its library dependencies
- package a Haskell library so others can install it from Hackage
- start a new Haskell program with a build file already set up

## Features

- cabal init creates a new project, and cabal run builds and runs it
- Resolves and downloads dependencies from Hackage
- Builds, tests, benchmarks and installs Haskell packages
- Multi-package projects
- The .cabal format describes a package for authors and distributors alike

## Trust

Overall: 0.66 out of 1.
Signals: maintenance 1.00, adoption 0.65, momentum 0.31, community 1.00, backing 0.30, extensibility 0.00.

- last commit 4 days ago
- 190 commits in the last 90 days
- latest release cabal-install-v3.18.2.0 2 months ago
- 1.8k GitHub stars
- 560 contributors
- 369 Homebrew installs in 30 days
- backed by Cabal Development Team

## Related

- Works with [Haskell](https://talira.ai/catalog/haskell-jjq1dx6f.md)

## Alternatives

- [Stack](https://talira.ai/catalog/stack-m7m1em13.md): A program for developing Haskell projects
- [setuptools](https://talira.ai/catalog/setuptools-8j7ja42g.md): A build backend and library for packaging Python projects

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 28 Nov 2026)
[^2]: https://mise-versions.jdx.dev/tools.json (checked 28 Nov 2026)
[^3]: https://github.com/haskell/cabal/blob/master/LICENSE (checked 27 Nov 2026)
[^4]: https://www.haskell.org/cabal/ (checked 27 Nov 2026)
