Merge pull request #455 from geekosaur/454-project-file

Clarify the use of `cabal.project`
This commit is contained in:
Tony Zorman 2023-05-14 12:27:25 +02:00 committed by GitHub
commit 025a78508c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,17 +236,18 @@ See also <https://www.haskell.org/cabal/#install-upgrade>.
#### Create a New Project
Let's create a cabal project. Since we're already in the correct
directory (`~/.config/xmonad`) with `xmonad` and `xmonad-contrib`
subdirectories, we'll instruct cabal to use them. Create a file named
`cabal.project` containing:
If you want to use `xmonad` or `xmonad-contrib` from git, you will need a
`cabal.project` file. If you want to use both from [Hackage][], you should
skip this step.
Create a file named `cabal.project` containing:
```
packages: */*.cabal
```
(If you skip this step, cabal will use the latest releases from [Hackage][]
instead.)
(If you do this step without using [git] checkouts, you will get an error from
cabal in the next step. Simply remove `cabal.project` and try again.)
#### Install Everything