Closed ghost closed 6 years ago
What does your stack.yaml
file look like? The error message suggest adding Spock-0.13.0.0
there, not in your cabal file :)
Yeap, same problem here.
Changing in stack.yaml
- # extradeps: []
+ extra-deps:
+ - Spock-0.13.0.0
+ - Spock-core-0.13.0.0
+ - reroute-0.5.0.0
fixed the issue for me.
I updated the guide
Not sure if i should open up a new issue for this but when i follow this guide stack asks me to add
- stm-containers-1.1.0.2
then
- stm-hamt-1.2.0.2
then
- primitive-extras-0.7.1
then i get a build failure
17:1: error:
Could not find module ‘STMContainers.Map’
Perhaps you meant StmContainers.Map (from stm-containers-1.1.0.2)
Use -v to see a list of the files searched for.
|
17 | import qualified STMContainers.Map as STMMap
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
$ stack --version
Version 1.7.1, Git revision 681c800873816c022739ca7ed14755e85a579565 (5807 commits) x86_64 hpack-0.28.2
$ cabal-install version 1.24.0.2
compiled using version 1.24.2.0 of the Cabal library
To get this to work I downgraded the stm containers library. This is what my extra deps has in it.
- stm-containers-0.2.16
- focus-0.1.5.2
https://www.spock.li/tutorials/getting-started
In the very beginning, after modifying the .cabal file, when I run
stack build --fast --pedantic
it doesn't work:If I use "Spock-0.13.0.0" instead of "Spock >=0.11" I get:
Many other things I tried also did not worked here. I'm new to haskell. (hi!)