Add skipping abbreviation unit tests
[cabal.git] / README.md
blobb03daf3a74c8c7162943aa5d2bed091043071ba5
1 # Cabal
3 [![Hackage version](https://img.shields.io/hackage/v/Cabal.svg?label=Hackage)](https://hackage.haskell.org/package/Cabal)
4 [![Stackage version](https://www.stackage.org/package/Cabal/badge/lts?label=Stackage)](https://www.stackage.org/package/Cabal)
5 [![Documentation Status](http://readthedocs.org/projects/cabal/badge/?version=latest)](http://cabal.readthedocs.io/en/latest/?badge=latest)
6 [![IRC chat](https://img.shields.io/badge/chat-via%20libera-brightgreen.svg)](https://web.libera.chat/#hackage)
7 [![Matrix chat](https://img.shields.io/badge/chat-via%20matrix-brightgreen.svg)](https://matrix.to/#/#hackage:matrix.org)
9 <img src="https://www.haskell.org/cabal/images/Cabal-light.png" align="right">
11 This Cabal Git repository contains the following main packages:
13  * [Cabal](Cabal/README.md): the Cabal library package ([license](Cabal/LICENSE))
14  * [Cabal-syntax](Cabal-syntax/README.md): the `.cabal` file format library ([license](Cabal-syntax/LICENSE))
15  * [cabal-install](cabal-install/README.md): the package containing the `cabal` tool ([license](cabal-install/LICENSE))
16  * [cabal-install-solver](cabal-install-solver): the package containing the solver component of the `cabal` tool ([license](cabal-install-solver/LICENSE))
18 The canonical upstream repository is located at
19 https://github.com/haskell/cabal.
21 Ways to get the `cabal-install` binary
22 --------------------------------
24 1. _GHCup_ (**preferred**): get GHCup using [the directions on its website](https://www.haskell.org/ghcup/) and run:
26     ```
27     ghcup install --set cabal latest
28     ```
30 2. _[Download from official website](https://www.haskell.org/cabal/download.html)_:
31     the `cabal-install` binary download for your platform should contain the `cabal` executable.
33 _Getting unreleased versions of `cabal-install`_: gives you a chance to try out yet-unreleased features.
34 Currently, we only provide binaries for `x86_64` platforms.
36 1. _GitHub preview release built from the tip of the `master` branch_: [download from GitHub](https://github.com/haskell/cabal/releases/tag/cabal-head) or use this GHCup command to install:
38     ```
39     ghcup install cabal -u https://github.com/haskell/cabal/releases/download/cabal-head/cabal-head-Linux-x86_64.tar.gz head
40     ```
42     Replace "Linux" with "Windows" or "macOS" as appropriate.
45 2. Even more cutting-edge binaries built from pull requests are always available
46    from the `Validate` worklow page on GitHub, at the very bottom of the page.
48 Ways to build `cabal-install` for everyday use
49 --------------------------------------------
51 1. _With cabal-install_:
52     if you have a pre-existing version of `cabal-install`, run:
54     ```
55     cabal install cabal-install
56     ```
58     to get the latest version of `cabal-install`. (You may want to `cabal update` first.)
60 2. _From Git_:
61     again with a pre-existing version of `cabal-install`,
62     you can install the latest version from the Git repository. Clone the
63     Git repository, move to its root, and run:
65     ```
66     cabal install --project-file=cabal.project.release cabal-install
67     ```
69 3. _Bootstrapping_:
70     if you don't have a pre-existing version of `cabal-install`,
71     look into the [`bootstrap`](bootstrap) directory.
73 Learn how to use `cabal` and get support
74 ----------------------------------------
76 `cabal` comes with a thorough [User Manual](https://cabal.readthedocs.io).
77 If you are new to `cabal` and want to quickly learn the basics, check
78 [Getting Started With Haskell and Cabal](https://cabal.readthedocs.io/en/latest/getting-started.html).
80 Got questions? Ask in [Haskell Matrix](https://matrix.to/#/#haskell:matrix.org)
81 (online chat) or [Haskell Discourse](https://discourse.haskell.org).
83 Build for hacking and contributing to cabal
84 -------------------------------------------
86 Refer to [CONTRIBUTING.md](CONTRIBUTING.md).