This Cabal Git repository contains the following main packages:
- Cabal: the Cabal library package (license)
- Cabal-syntax: the
.cabalfile format library (license) - cabal-install: the package containing the
cabaltool (license) - cabal-install-solver: the package containing the solver component of the
cabaltool (license)
The canonical upstream repository is located at https://github.com/haskell/cabal.
-
GHCup (preferred): get GHCup using the directions on its website and run:
ghcup install --set cabal latest -
Download from official website: the
cabal-installbinary download for your platform should contain thecabalexecutable.
-
With cabal-install: if you have a pre-existing version of
cabal-install, run:cabal install cabal-installto get the latest version of
cabal-install. (You may want tocabal updatefirst.) -
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 thebootstrapdirectory.
Refer to CONTRIBUTING.md.