System for building and packaging Haskell libraries and programs
open sourceBSD-3-Clausefree
Cabal (Common Architecture for Building Applications and Libraries) is the standard system for building and packaging Haskell 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.
Ways to install
Package managers
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
Alternatives
The same job
These do what Cabal does.
- Stack A program for developing Haskell projects
- setuptools A build backend and library for packaging Python projects
