Skip to content

Commit 9a212a2

Browse files
committed
Different approach to the clarification
Rather than a recap at the end, the introduction reminds the reader of what has gone before.
1 parent 85b9b41 commit 9a212a2

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

doc/GUIDE.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -447,22 +447,20 @@ Remember above when `stack new` selected some
447447
our build plan and available packages. When we tried using the `text` package,
448448
it just worked, because it was part of the LTS *package set*.
449449

450-
But `acme-missiles` is not part of that package set, so building failed.
450+
We've specified the `acme-missiles` package in the `package.yaml` file (see
451+
above), but `acme-missiles` is not part of that LTS package set, so building
452+
failed.
451453

452-
To add this new dependency, we'll use the `extra-deps` field in `stack.yaml` to
453-
define extra dependencies not present in the resolver. You can add this like so:
454+
To add `acme-missles` to the available packages, we'll use the `extra-deps`
455+
field in the `stack.yaml` file. That field defines extra packages, not present
456+
in the resolver, that will be needed as dependencies. You can add this like so:
454457

455458
```yaml
456459
extra-deps:
457-
- acme-missiles-0.3 # not in the LTS
460+
- acme-missiles-0.3 # not in the LTS resolver
458461
```
459462
460-
Now `stack build` will succeed. To recap you needed to
461-
* add `acme-missiles` to **dependencies** in `package.yaml` and
462-
* add `acme-missiles-0.3` to **extra-deps** in `stack.yaml`
463-
464-
If you failed to do this you may experience
465-
[Could not find module ‘Acme.Missiles’](https://stackoverflow.com/questions/48251027/cannot-add-extra-deps-to-stack-project)
463+
Now `stack build` will succeed.
466464

467465
With that out of the way, let's dig a little bit more into these package sets,
468466
also known as *snapshots*. We mentioned the LTS resolvers, and you can get quite

0 commit comments

Comments
 (0)