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