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

[ghc-9.10] Cabal-3.12 #7547

Open
5 of 15 tasks
juhp opened this issue Oct 26, 2024 · 10 comments
Open
5 of 15 tasks

[ghc-9.10] Cabal-3.12 #7547

juhp opened this issue Oct 26, 2024 · 10 comments
Labels

Comments

@juhp
Copy link
Contributor

juhp commented Oct 26, 2024

Heads-up for ghc-9.10 (current nightly is still 9.8)

Cabal-3.12.0.0 (changelog) is out of bounds for:

Cabal-syntax-3.12.0.0 (changelog) is out of bounds for:

  • cabal-install-3.12.1.0 (^>=3.12.1.0). Mikolaj Konarski [email protected] @Mikolaj, Stackage upper bounds. Used by: library
  • cabal-install-solver-3.12.1.0 (^>=3.12.1.0). Grandfathered dependencies, Stackage upper bounds. Used by: library
  • fourmolu-0.15.0.0 (>=3.10 && < 3.11). Brandon Chinn [email protected] @brandonchinn178, Stackage upper bounds. Used by: library
  • ormolu-0.7.4.0 (>=3.10 && < 3.11). Mark Karpov [email protected] @mrkkrp, Stackage upper bounds. Used by: library
@juhp juhp added the ghc-9.10 label Oct 26, 2024
@juhp juhp mentioned this issue Oct 26, 2024
27 tasks
@Mikolaj
Copy link
Contributor

Mikolaj commented Oct 26, 2024

Hi! I'm not sure how to interpret this ticket, but OOI, why does it mention Cabal-3.12.0.0 instead of Cabal-3.12.1.0 (or Cabal-3.14.0.0 for that matter)?

@andreasabel
Copy link
Contributor

@Mikolaj The problem is that GHC 9.10.1 ships the 3.12.0.0 edition of Cabal:

$ ghc-pkg-9.10 list | grep Cabal
    Cabal-3.12.0.0
    Cabal-syntax-3.12.0.0

And there is no such edition for cabal-install.

Not sure how to proceed here.

One option would be to wait for GHC 9.10.2 which hopefully ships the 3.12.1.0 edition, but a release does not seem imminent judging from the milestone: https://gitlab.haskell.org/ghc/ghc/-/milestones/399#tab-issues
This would mean postponing the bump of the nightly snapshot to 9.10 for an unknown amount of time.

Can cabal-install-3.12.1.0 be built and work with Cabal-3.12.0.0?
(Seems unlikely, but does not hurt to ask.)

@peti
Copy link
Contributor

peti commented Oct 27, 2024

cabal2spec-2.7.1 is fixed on Hackage in revision 1.

@juhp
Copy link
Contributor Author

juhp commented Oct 28, 2024

I don't think cabal-install is a real blocker for bumping Nightly - we didn't have it in nightly before 9.8.3 was released either. Though everything being equal I suppose I would prefer to start with 9.10.2, which might appear before long?
(edit: Okay I had only looked at the pending Backports, on the Milestone page there does seem to be a lot left)

Though I can lament the "instability" of cabal-install and stack in Stackage - it seems a never ending battle/dance to have them available: I wish upstreams were more aware of this, though it sounds like stack HEAD might be okay for 9.10 nightly (it dropped out with 9.8.3).

@Mikolaj
Copy link
Contributor

Mikolaj commented Oct 28, 2024

Oh, I see.

Can cabal-install-3.12.1.0 be built and work with Cabal-3.12.0.0?

We'd need to double-check in cabal-install-3.12.1.0 and Cabal-3.12.1.0 changelogs, but I guess there should be no problem running cabal-install-3.12.1.0 with Cabal-3.12.0.0, once the deps are revised (on Hackage or locally). The changelog for cabal-install-3.12.1.0 even says "this is the first release of cabal-install that is fully compatible with Cabal 3.12.0.0 as released with GHC 9.10.1". @ulysses4ever, what do you think?

@tek
Copy link
Contributor

tek commented Oct 28, 2024

revised polysemy and polysemy-plugin

@ulysses4ever
Copy link
Contributor

@Mikolaj

there should be no problem running cabal-install-3.12.1.0 with Cabal-3.12.0.0,

Indeed, I just tried it, and, at least, it builds.

Normally the tool is tightly coupled with the library and doesn't guarantee to build with a mismatched version, that's why we bump the lower bounds almost unconsciously. But that does feel a little restrictive, perhaps. I complained about that myself recently to @Kleidukos (I can't remember where and find a link), and he said that's how it's supposed to be. So, I'd be interested to hear what he says about the problem Stackage runs into.

@mrkkrp
Copy link
Contributor

mrkkrp commented Oct 29, 2024

Bumped the bounds via a revision for ormolu-0.7.4.0.

@ysangkok
Copy link
Contributor

Fourmolu 0.16.2.0 supports Cabal 3.12, so it just needs to be bumped, see #7449

@ysangkok
Copy link
Contributor

ysangkok commented Dec 4, 2024

GHC 9.10.2 was scheduled for July 2024, but that must have slipped somehow. If I understand correctly, cabal-install is optional, so Nightly can use GHC 9.10.1 while GHC 9.10.2 is not released, and this issue remains unsolved.

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

No branches or pull requests

8 participants