@@ -447,22 +447,20 @@ Remember above when `stack new` selected some
447
447
our build plan and available packages. When we tried using the ` text ` package,
448
448
it just worked, because it was part of the LTS * package set* .
449
449
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.
451
453
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:
454
457
455
458
``` yaml
456
459
extra-deps :
457
- - acme-missiles-0.3 # not in the LTS
460
+ - acme-missiles-0.3 # not in the LTS resolver
458
461
` ` `
459
462
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.
466
464
467
465
With that out of the way, let's dig a little bit more into these package sets,
468
466
also known as *snapshots*. We mentioned the LTS resolvers, and you can get quite
0 commit comments