You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS C:\Users\Tobias\Documents\Uni\haskell\sample-project> stack build
Stack has not been tested with GHC versions above 9.0, and using 9.3.20220308, this may fail
Stack has not been tested with Cabal versions above 3.4, but version 3.7.0.0 was found, this may fail
[2 of 3] Compiling StackSetupShim ( C:\sr\setup-exe-src\setup-shim-Z6RU0evB.hs, C:\sr\setup-exe-src\setup-shim-Z6RU0evB.o )
C:\sr\setup-exe-src\setup-shim-Z6RU0evB.hs:3:1: error:
Could not load module ‘Distribution.PackageDescription’
It is a member of the hidden package ‘Cabal-syntax-3.7.0.0’.
You can run ‘:set -package Cabal-syntax’ to expose it.
(Note: this unloads all the modules in the current scope.)
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
3 | import Distribution.PackageDescription (PackageDescription, emptyHookedBuildInfo)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-- While building simple Setup.hs (scroll up to its section to see the error) using:
C:\Program Files\ghc-9.3.20220308-x86_64-unknown-mingw32\bin\ghc-9.3.20220308.exe -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-3.7.0.0 C:\sr\setup-exe-src\setup-Z6RU0evB.hs C:\sr\setup-exe-src\setup-shim-Z6RU0evB.hs -o C:\sr\setup-exe-cache\x86_64-windows\tmp-Cabal-simple_Z6RU0evB_3.7.0.0_ghc-9.3.20220308.exe
Process exited with code: ExitFailure 1
More Information
Issue #5110 is similar and was apparently worked around by adding cabal to the setup-depends field.
More specific to my problem I have found the issue haskell/cabal#7974 where they talk about adding a setup-depends field with Cabal-syntax >= 3.7.
Unfortunately it does not work. The error message remains the same. I tried it by deleting package.yaml and editing stack.yaml and sample-project.cabal as follows:
Steps to reproduce
stack new sample-project
stack.yaml
to use a nightly ghcstack build
Expected
project compiles successfully
Actual
More Information
Issue #5110 is similar and was apparently worked around by adding cabal to the setup-depends field.
More specific to my problem I have found the issue haskell/cabal#7974 where they talk about adding a
setup-depends
field withCabal-syntax >= 3.7
.Unfortunately it does not work. The error message remains the same. I tried it by deleting
package.yaml
and editingstack.yaml
andsample-project.cabal
as follows:Stack version
Method of installation
The text was updated successfully, but these errors were encountered: