Skip to content

Implement ghc/cabal compatiblity matrix (#415) - #5177

Merged
hvr merged 4 commits into
haskell:2.2from
hvr:pr/2.2/issue-415
Feb 28, 2018
Merged

hvr merged 4 commits into
haskell:2.2from
hvr:pr/2.2/issue-415

Conversation

@hvr

@hvr hvr commented Feb 28, 2018

Copy link
Copy Markdown
Member

This is a backport of #5165 to 2.2

hvr added 3 commits February 28, 2018 18:46
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.

(cherry picked from commit 71e797e)
(cherry picked from commit a503345)
@hvr hvr added this to the 2.2 milestone Feb 28, 2018
@hvr hvr self-assigned this Feb 28, 2018
The `setup-custom2` tests implicit `setup-depends` which implies
a `Cabal < 2` upper bound, which is incompatible with GHC 8.2 or later
@hvr
hvr merged commit 9f4b6b8 into haskell:2.2 Feb 28, 2018
@hvr
hvr deleted the pr/2.2/issue-415 branch February 28, 2018 23:52
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

Successfully merging this pull request may close these issues.

1 participant