Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Cabal

haskell.org

  • Free plan
  • Windows
  • macOS
  • Linux
7.9 Club score Visit haskell.org

What Cabal is

Cabal is a free system for building and packaging Haskell libraries and programs. Its command-line tool installs packages and resolves dependencies, using Hackage by default while also accepting other suitable archives. It can configure and build local packages, generate documentation, and run tests and benchmarks. The cabal run command can execute single-file Haskell scripts. A Cabal package combines Haskell software with metadata in a .cabal file and a standard build interface in Setup.hs. Cabal supports dependency resolution, lockfiles, workspaces, and offline installation. Users can choose an installation location, Haskell implementation, and optimized or profiling-enabled builds. The built-in build system is optional, allowing custom systems. Packages are source-based and usually portable, though portability is not guaranteed. Supported systems include Linux, macOS, FreeBSD, and Windows. Formats include source tarballs, RPM, Debian packages, and Windows installers.

Who it suits

Cabal suits Haskell developers managing dependencies, builds, tests, documentation, scripts, and package distribution across supported platforms.

Good to know, and what to watch

  • Dependency resolution and lockfiles
  • Workspace and offline installation support
  • Runs tests and benchmarks
  • Custom build systems allowed
  • Supports multiple package formats
  • Future interface stability is not fully promised
  • Portability across implementations is not guaranteed
  • Installation download page recommends ghcup

Cabal

Free

Free plan

The verdict

Cabal combines Haskell package management with build, test, documentation, and distribution workflows. Its source-based packages and configurable build choices suit varied Haskell projects.

What the maker publishes

Build workflow
Cabal supports configuring and building local packages, as well as generating documentation and running test suites and benchmarks. source
Company details
The Cabal overview and download pages do not state a maker headquarters or founding date. source
Configuration
Users can choose where packages are installed, which Haskell implementation to use, and whether to build optimized or profiling-enabled code. source
Custom build systems
Cabal's built-in build system for simple packages is optional, and custom build systems can be used. source
Customization
Users can choose where to install a package, which Haskell implementation to use, and whether to build optimized or profiling-enabled code. source
Dependency resolution
Yes source
Distribution
Cabal packages use compressed .tar.gz tarballs and the package format can be translated into native formats such as RPM or deb. source
Downloads
The download page recommends ghcup and also links to manually downloadable binaries for many architectures. source
Free plan
Yes source
Installation
The Cabal download page recommends obtaining Cabal through ghcup and provides links to manually downloaded binaries for many architectures. source
Interface stability
Cabal says it cannot promise complete future-proof stability while development continues, though its package file format is backward compatible and mostly forward compatible. source
Lockfile support
Yes source
Offline installation
Yes source
Package archive
Cabal uses Hackage by default to install packages from Haskell’s central package archive, and can use other suitable archives. source
Package archives
Cabal uses Hackage by default to install packages and can also work with other suitable package archives. source
Package format
Cabal packages contain Haskell software, machine-readable metadata in a .cabal file, and a standard build interface in Setup.hs. source
Package formats
.cabal files; .tar.gz source distributions; RPM; Debian packages; Windows installers source
Package management
The cabal command-line tool can install packages and automatically install their dependencies. source
Package sources
Cabal can install packages from local directories, package archives, and local or remote tarball files. source
Platforms
The recommended ghcup installation method supports Linux, macOS, FreeBSD, and Windows. source
Platforms
The official overview says ghcup can manage Cabal versions on Linux, Mac, and Windows. source
Portability
Cabal packages are source-based and typically, though not necessarily, portable across platforms and Haskell implementations. source
Project setup
The cabal init command creates the files needed for a Cabal package, including executable, library, or test suite projects. source
Purpose
Cabal is a system for building and packaging Haskell libraries and programs. source

Checked against the maker's pages on 8 Oct 2026.