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

Cabal update #5762

Closed
roberth opened this issue Nov 27, 2020 · 3 comments
Closed

Cabal update #5762

roberth opened this issue Nov 27, 2020 · 3 comments

Comments

@roberth
Copy link

roberth commented Nov 27, 2020

nightly-2020-11-23 currently compiles Setup with Cabal 3.2.0.0, which has broken C++ support. This has been fixed in Cabal 3.2.1.0.
Is it possible to update the Cabal library used in the snapshot?
I couldn't find docs in the repo about such a change.

Blocks fpco/inline-c#121 (comment)

@bergmark
Copy link
Member

I think the Cabal version is tied to what's used by GHC unfortunately. So we may have to wait for GHC 8.10.3.

@roberth
Copy link
Author

roberth commented Dec 8, 2020

As a workaround, I'm overriding ghc in my Stack shell.nix file.

buildStackProject {
  # Override ghc to get a working cabal with GHC 8.10.2
  # See https://github.com/commercialhaskell/stackage/issues/5762
  # TODO: when updating GHC, revert this to
  # inherit ghc;
  ghc = pkgs.haskell.packages.ghc8102.ghcWithPackages (p: [ p.Cabal_3_2_1_0 ]);

  # ...
}

@roberth
Copy link
Author

roberth commented Jan 10, 2021

GHC 8.10.3 has been released and it seems like this can't currently be addressed generically in stackage itself.

@roberth roberth closed this as completed Jan 10, 2021
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

2 participants