Skip to content

Lower cabal-version to 3.6 and default-language to GHC2021#434

Merged
jupblb merged 1 commit into
mainfrom
michal/ghc2021
Jun 3, 2026
Merged

Lower cabal-version to 3.6 and default-language to GHC2021#434
jupblb merged 1 commit into
mainfrom
michal/ghc2021

Conversation

@jupblb
Copy link
Copy Markdown
Member

@jupblb jupblb commented Jun 3, 2026

Hackage's build matrix tries scip-0.8.0 on GHC 9.8.4 and fails before reaching compilation:

rejecting: scip-0.8.0 (unsupported spec-version 3.12)

GHC 9.8.x ships with Cabal-3.10.x, which understands cabal-version only up to 3.10. The previous cabal-version: 3.12 was required by default-language: GHC2024 (the GHC2024 token was added in Cabal 3.12).

Lowering both to the minimum that still supports our usage:

  • cabal-version: 3.6 — minimum version that recognizes default-language: GHC2021
  • default-language: GHC2021 — supported by GHC 9.2+ and any Cabal ≥ 3.6

No source changes needed: the proto-lens-generated modules build cleanly under GHC2021. cabal check and cabal build both pass locally.

This will ship with the next release; the failed scip-0.8.0 build reports on Hackage are cosmetic (users on GHC 9.10+ install fine), so no 0.8.0 revision is planned.

Fixes Hackage build matrix failures on GHC < 9.10 (which ships with Cabal < 3.12 and cannot parse cabal-version: 3.12 or recognize GHC2024).
@jupblb jupblb enabled auto-merge (squash) June 3, 2026 10:52
@jupblb jupblb requested review from emidoots, eseliger and trly June 3, 2026 10:52
@jupblb jupblb merged commit f5ecc6d into main Jun 3, 2026
13 checks passed
@jupblb jupblb deleted the michal/ghc2021 branch June 3, 2026 12:58
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.

2 participants