Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in hspec-example with relude 0.3.0 #116

Closed
pcarbonn opened this issue Oct 29, 2018 · 1 comment
Closed

error in hspec-example with relude 0.3.0 #116

pcarbonn opened this issue Oct 29, 2018 · 1 comment

Comments

@pcarbonn
Copy link
Contributor

I can run stack test in hspec-example with relude 0.2.0 correctly, but when I change strip.cabal (2 places) and strip.yaml to run it with relude 0.3.0, I get the following error:

--  While building package relude-0.3.0 using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe --builddir=.stack-work\dist\ca59d0ab configure --with-ghc=C:\Users\pcarbonn\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc.EXE --with-ghc-pkg=C:\Users\pcarbonn\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc-pkg.EXE --user --package-db=clear --package-db=global --package-db=C:\sr\snapshots\762d3c42\pkgdb --package-db=C:\Haskell\hspec-example\.stack-work\install\3a94e881\pkgdb --libdir=C:\Haskell\hspec-example\.stack-work\install\3a94e881\lib --bindir=C:\Haskell\hspec-example\.stack-work\install\3a94e881\bin --datadir=C:\Haskell\hspec-example\.stack-work\install\3a94e881\share --libexecdir=C:\Haskell\hspec-example\.stack-work\install\3a94e881\libexec --sysconfdir=C:\Haskell\hspec-example\.stack-work\install\3a94e881\etc --docdir=C:\Haskell\hspec-example\.stack-work\install\3a94e881\doc\relude-0.3.0 --htmldir=C:\Haskell\hspec-example\.stack-work\install\3a94e881\doc\relude-0.3.0 --haddockdir=C:\Haskell\hspec-example\.stack-work\install\3a94e881\doc\relude-0.3.0 --dependency=base=base-4.9.1.0 --dependency=bytestring=bytestring-0.10.8.1 --dependency=containers=containers-0.5.7.1 --dependency=deepseq=deepseq-1.4.2.0 --dependency=ghc-prim=ghc-prim-0.5.0.0 --dependency=hashable=hashable-1.2.6.1-I8TtfTMw8kCEo1q1h2BgxU --dependency=mtl=mtl-2.2.1-BLKBelFsPB3BoFeSWSOYj6 --dependency=stm=stm-2.4.4.1-JQn4hNPyYjP5m9AcbI88Ve --dependency=text=text-1.2.2.1-Ji7hMs2U4BkBwavd4taEVR --dependency=transformers=transformers-0.5.2.0 --dependency=unordered-containers=unordered-containers-0.2.8.0-6txQagwbKwSESVNJVBgwqv --dependency=utf8-string=utf8-string-1.0.1.1-1DpjxLeTvGg7ttZZojxJR5 --extra-include-dirs=C:\Users\pcarbonn\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\include --extra-lib-dirs=C:\Users\pcarbonn\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\bin --extra-lib-dirs=C:\Users\pcarbonn\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\lib
    Process exited with code: ExitFailure 1
    Logs have been written to: C:\Haskell\hspec-example\.stack-work\logs\relude-0.3.0.log

    Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe: relude.cabal:131: Parse of field
    'build-depends' failed.

Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe is suspicious because relude-0.3.0 uses Cabal 2.0, according to relude.cabal. So I changed strip.cabal to have cabal-version: 2.0 (instead of 1.12) , but it does not fix it.

Yet:

PS C:\Haskell\hspec-example> cabal --version
cabal-install version 2.0.0.1
compiled using version 2.0.1.1 of the Cabal library

Other version info:

  • resolver: lts-8.20.
  • stack 1.9.1
  • Windows 7

Any clue ?

@pcarbonn
Copy link
Contributor Author

Never mind... I used a newer version of the resolver (lts-12.14), with base-noprelude-4.11.1.0, and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant