Cabal is Haskell’s common system for building and packaging libraries and programs, centered on the cabal-install command-line tool.
Overview
Cabal is a system for building and packaging Haskell libraries and programs. It defines a shared interface for authors and distributors to build applications in a portable way, and sits in a larger ecosystem for organizing Haskell libraries and programs.
The name cabal can mean the .cabal file format, the Cabal library that reads those files, or cabal-install, which provides the cabal executable most users mean. The tool can initialize projects, build and run executables, manage dependencies, and upgrade itself when already installed.
You can install via GHCup on Linux, Mac, and Windows, via distribution package managers, or from prebuilt binaries. Quick start flows include cabal init and cabal run for a new executable project. A user manual and getting-started material support day-to-day use.
The upstream repository bundles the Cabal library, Cabal-syntax, Cabal-hooks, cabal-install, and the dependency solver as related packages maintained together.
Key features
- Haskell package build and packaging
- cabal-install command-line tool
- .cabal project file format
- Project init, build, and run workflow
- Dependency installation and upgrades
- GHCup-based installation path
- User manual and quick start guides
Use cases
- Building Haskell applications and libraries
- Managing Haskell project dependencies
- Packaging Haskell software for distribution