Cabal
This Cabal Git repository contains the following main packages:
- Cabal: the Cabal library package (license)
- Cabal-syntax: the
.cabal
file format library (license) - cabal-install: the package containing the
cabal
tool (license) - cabal-install-solver: the package containing the solver component of the
cabal
tool (license)
The canonical upstream repository is located at https://github.com/haskell/cabal.
cabal-install
binary
Ways to get the -
GHCup (preferred): get GHCup using the directions on its website and run:
ghcup install --set cabal latest
-
Download from official website: the
cabal-install
binary download for your platform should contain thecabal
executable.
Getting unreleased versions of cabal-install
: gives you a chance to try out yet-unreleased features.
Currently, we only provide binaries for x86_64
platforms.
-
GitHub preview release built from the tip of the
master
branch: -
Even more cutting-edge binaries built from pull requests are always available from the
Validate
worklow page on GitHub, at the very bottom of the page.
cabal-install
for everyday use
Ways to build -
With cabal-install: if you have a pre-existing version of
cabal-install
, run:cabal install cabal-install
to get the latest version of
cabal-install
. (You may want tocabal update
first.) -
From Git: again with a pre-existing version of
cabal-install
, you can install the latest version from the Git repository. Clone the Git repository, move to its root, and run:cabal install --project-file=cabal.project.release cabal-install
-
Bootstrapping: if you don't have a pre-existing version of
cabal-install
, look into thebootstrap
directory.
Build for hacking and contributing to cabal
Refer to CONTRIBUTING.md.