Skip to content

Commit 74a5dde

Browse files
authored
Merge pull request #5257 from ivanbakel/patch-1
Update packages -> extra-deps in FAQ
2 parents bff2cfb + 030312c commit 74a5dde

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

doc/faq.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -76,39 +76,35 @@ extra-deps:
7676
7777
## I need to use a package (or version of a package) that is not available on hackage, what should I do?
7878
79-
Add it to the `packages` list in your project's `stack.yaml`, specifying the
80-
package's source code location relative to the directory where your
81-
`stack.yaml` file lives, e.g.
79+
Add it to the
80+
[`extra-deps`](yaml_configuration.md#extra-deps) list in your project's
81+
`stack.yaml`, specifying the package's source code location relative to the
82+
directory where your `stack.yaml` file lives, e.g.
8283

8384
```yaml
8485
resolver: lts-2.10
8586
packages:
8687
- '.'
88+
extra-deps:
8789
- third-party/proprietary-dep
8890
- github-version-of/conduit
8991
- patched/diagrams
90-
extra-deps: []
9192
```
9293

93-
The above example specifies that it should include the package at the root
94-
directory (`'.'`), that the `proprietary-dep` package is found in the project's
95-
`third-party` folder, that the `conduit` package is found in the project's
96-
`github-version-of` folder, and that the `diagrams` package is found in the
97-
project's `patched` folder. This autodetects changes and reinstalls the
94+
The above example specifies that the `proprietary-dep` package is found in the
95+
project's `third-party` folder, that the `conduit` package is found in the
96+
project's `github-version-of` folder, and that the `diagrams` package is found
97+
in the project's `patched` folder. This autodetects changes and reinstalls the
9898
package.
9999

100100
To install packages directly from a Git repository, use e.g.:
101101

102102
```yaml
103-
resolver: lts-2.10
104-
packages:
105-
- location:
106-
git: https://github.com/githubuser/reponame.git
103+
extra-deps:
104+
- git: https://github.com/githubuser/reponame.git
107105
commit: somecommitID
108106
```
109107

110-
Note that the `- '.'` line has been omitted, so the package in the root directory will not be used.
111-
112108
## What is the meaning of the arguments given to stack build, test, etc?
113109

114110
Those are the targets of the build, and can have one of three formats:

0 commit comments

Comments
 (0)