Skip to content

Commit 8777423

Browse files
authored
Add explicit details for acme-missiles example
I tried following these instructions but didn't realize I needed to update both `package.yaml` and `stack.yaml` and encountered the same "Could not find module ‘Acme.Missiles’" problem [**godzsa** did three years ago](https://stackoverflow.com/questions/48251027/cannot-add-extra-deps-to-stack-project) so I suggest this recap for beginners.
1 parent e096320 commit 8777423

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/GUIDE.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,12 @@ extra-deps:
444444
- acme-missiles-0.3 # not in the LTS
445445
```
446446
447-
Now `stack build` will succeed.
447+
Now `stack build` will succeed. To recap you needed to
448+
* add `acme-missiles` to **dependencies** in `package.yaml` and
449+
* add `acme-missiles-0.3` to **extra-deps** in `stack.yaml`
450+
451+
If you failed to do this you may experience
452+
[Could not find module ‘Acme.Missiles’](https://stackoverflow.com/questions/48251027/cannot-add-extra-deps-to-stack-project)
448453

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

0 commit comments

Comments
 (0)