stack-run
stack-run copied to clipboard
stack install stack-run on Windows 10 fails
C:\Users\%USER%>stack install stack-run
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for stack-run-0.1.1.4:
conduit-1.3.1 from stack configuration does not match >1.1 && <1.3 (latest matching version is 1.2.13.1)
conduit-extra-1.3.0 from stack configuration does not match >=1.1 && <1.2 (latest matching version is 1.1.17)
needed since stack-run is a build target.
Some different approaches to resolving this:
* Set 'allow-newer: true' in C:\sr\config.yaml to ignore all version constraints and build anyway.
* Consider trying 'stack solver', which uses the cabal-install solver to attempt to find some
working build configuration. This can be convenient when dealing with many complicated
constraint errors, but results may be unpredictable.
* Recommended action: try adding the following to your extra-deps
in C:\sr\global-project\stack.yaml:
conduit-1.2.13.1@sha256:afd4db7fe66ae7af3d418e1a932384a8dee08df2f6299cca80e53ba964ce1228
conduit-extra-1.1.17@sha256:c178b987980232659c789798fdbc3fd81dfc1229c95d00e0041910482d66a6a8
Plan construction failed.
So something here is wrong. I used the windows 10 installer to get stack and then upgraded it. Is there a way to solve this?
added the following to my global stack.yaml extra-deps:
- conduit-1.2.13.1@sha256:afd4db7fe66ae7af3d418e1a932384a8dee08df2f6299cca80e53ba964ce1228
- conduit-extra-1.1.17@sha256:c178b987980232659c789798fdbc3fd81dfc1229c95d00e0041910482d66a6a8
- resourcet-1.1.11@sha256:096a3db6774a728bbe264e3e25c4e40d60e527ebd4b90c0b311deaa8d4cf4f27
- streaming-commons-0.1.19@sha256:3a02f84578f75eac1425dca877f8d697b68d379a21970c1dad96196620404803
I mean it installs but it errors at the end with: src\Main.hs:18:1: error: Could not find module `Distribution.PackageDescription.Parse' Perhaps you meant Distribution.PackageDescription.Parsec (needs flag -package-key Cabal-2.4.0.1) Distribution.PackageDescription.Parsec (from Cabal-2.4.1.0) Distribution.PackageDescription.Check (needs flag -package-key Cabal-2.4.0.1) Use -v to see a list of the files searched for.
Please check if pull request #22 fixes your problem.