forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement ghc/cabal compatiblity matrix (re haskell#415)
This injects lower-bound constraints on Cabal for custom setup dependencies to prevent the solver from selecting unsupported configurations. Previously we already added an absolute lower bound `Cabal >= 1.20` for nix-local builds, as that's the minimum version we need to be able to interact with custom Setup.hs scripts. This refines with logic by restricting that lower bound even more based on GHC version. This patch augments this with the following rules: - GHC 8.4+ constrains Cabal >= 2.2 - GHC 8.2 constrains Cabal >= 2.0 - GHC 8.0 constrains Cabal >= 1.24 - GHC 7.10 constrains Cabal >= 1.22 - (default constraint Cabal >= 1.20) This only affects nix-style local builds codepaths.
- Loading branch information
Showing
1 changed file
with
42 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters