You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/Distribution/Types/ForeignLib.hs:168:13: error:
Ambiguous occurrence ‘<>’
It could refer to either ‘Distribution.Compat.Prelude.<>’,
imported from ‘Distribution.Compat.Prelude’ at src/Distribution/Types/ForeignLib.hs:18:1-34
(and originally defined in ‘Data.Semigroup’)
or ‘Data.Monoid.<>’,
imported from ‘Data.Monoid’ at src/Distribution/Types/ForeignLib.hs:31:1-18
Have someone forgot adjusting lowerbounds? Has Cabal-syntax dropped support for GHC-8.0 and GHC-8.2 (I dont' see a mention in the changelog).
But the problem is when building with GHC-8.2? It's out of the support window. Oldest tested for compilation is GHC 8.6.5.
I don't think we announce when GHCs drop out of our support window. Should we? It happens without any action. We could announce when we spot it and adjust CI. If so, that should be added to the criteria stating when a changelog is necessary.
I think Cabal-syntax bound on base. I think @phadej is right, especially that revisions can always be reverted once we do the same bump in a PR and reviewers point out how the revision could be improved.
@ffaf1: you have full authority to do just that revision, if you'd like to. I'd announce it on the channel, though, for transparency and in case we missed something.
I am going to download GHC 8.4.2 locally, make sure it compiles, make an announcemente on Matrix and then do a revision setting base lower bound to >= 4.11.1.0.
edit: with GHC 8.4.2 I got this error
[ 29 of 137] Compiling Distribution.CabalSpecVersion ( src/Distribution/CabalSpecVersion.hs, /home/f/media/vcs/cabal/dist-newstyle/build/x86_64-linux/ghc-8.4.2/Cabal-syntax-3.12.0.0/build/Distribution/CabalSpecVersion.o )
ghc: panic! (the 'impossible' happened)
(GHC version 8.4.2 for x86_64-unknown-linux):
Prelude.!!: index too large
*8.4.4. works fine so it will still be >= 4.11.1.0.
I don't think we announce when GHCs drop out of our support window. Should we?
You definitely should. Dropping support for old GHCs, base or any other dependency (and/or supporting newer versions) is something downstream users care about (recall, cabal-install is not the only user of Cabal-syntax). It also may affect build-type: Custom people.
There's also MIN_VERSION_bytestring, MIN_VERSION_binary and MIN_VERSION_containers. I don't think it's any value supporting older versions than bundled with older GHC supported. ghc-pkg list is your friend.
I forgot to mention an important point: having metadata updated and changelog entry means that there is a record in VCS when the change happened, leaving some trace. If the change is only in some CI configuration, it may looks like an accident. And so far it looks so to me. I don't know whether to expect Cabal-syntax-3.12.0.1 fixing the issue (i.e. restoring support for a bit older GHCs) or whether the support is dropped for good.
Activity
phadej commentedon Apr 29, 2024
The bad commit is 54183f2, old GHC support breakage seems unintentional.
ffaf1 commentedon Apr 29, 2024
It passed old GHCs
validateworkflow, so I am puzzled.Mikolaj commentedon Apr 29, 2024
But the problem is when building with GHC-8.2? It's out of the support window. Oldest tested for compilation is GHC 8.6.5.
I don't think we announce when GHCs drop out of our support window. Should we? It happens without any action. We could announce when we spot it and adjust CI. If so, that should be added to the criteria stating when a changelog is necessary.
Mikolaj commentedon Apr 29, 2024
That is a problem, though. Whenever we drop a GHC from CI we should bump the bounds and I think usually we do, so it's not unclear, I think.
phadej commentedon Apr 29, 2024
First, please make a Hackage revision so the builds are not failing and then we can discuss further.
This is criticial issue, you should act ASAP.
ffaf1 commentedon Apr 29, 2024
Which revision would fix this?
Mikolaj commentedon Apr 29, 2024
I think Cabal-syntax bound on
base. I think @phadej is right, especially that revisions can always be reverted once we do the same bump in a PR and reviewers point out how the revision could be improved.Mikolaj commentedon Apr 29, 2024
Here's a list of which
basefits which GHC: https://wiki.haskell.org/Base_packageMikolaj commentedon Apr 29, 2024
@ffaf1: you have full authority to do just that revision, if you'd like to. I'd announce it on the channel, though, for transparency and in case we missed something.
ffaf1 commentedon Apr 29, 2024
I am going to download GHC 8.4.2 locally, make sure it compiles, make an announcemente on Matrix and then do a revision setting
baselower bound to>= 4.11.1.0.edit: with GHC 8.4.2 I got this error
*8.4.4. works fine so it will still be
>= 4.11.1.0.ffaf1 commentedon Apr 29, 2024
Revision has been published.
phadej commentedon Apr 29, 2024
@ffaf1 Thanks
@Mikolaj
You definitely should. Dropping support for old GHCs,
baseor any other dependency (and/or supporting newer versions) is something downstream users care about (recall,cabal-installis not the only user ofCabal-syntax). It also may affectbuild-type: Custompeople.Virtually all maintainers do so, e.g. https://hackage.haskell.org/package/containers-0.6.6/changelog; it's the first line in the changelog. Also previously such changes were announced in Cabal's changelog, though not very prominently
cabal/release-notes/Cabal-3.10.1.0.md
Line 131 in c80ee75
EDIT: FWIW, there's also some cleanup you could do, a simple
git grepshows e.g.There's also
MIN_VERSION_bytestring,MIN_VERSION_binaryandMIN_VERSION_containers. I don't think it's any value supporting older versions than bundled with older GHC supported.ghc-pkg listis your friend.phadej commentedon Apr 29, 2024
I forgot to mention an important point: having metadata updated and changelog entry means that there is a record in VCS when the change happened, leaving some trace. If the change is only in some CI configuration, it may looks like an accident. And so far it looks so to me. I don't know whether to expect
Cabal-syntax-3.12.0.1fixing the issue (i.e. restoring support for a bit older GHCs) or whether the support is dropped for good.ffaf1 commentedon Apr 29, 2024
Release notes are being updated in #9953.
[-]Build failure[/-][+]Build failure with GHC-8.2[/+]Mikolaj commentedon May 1, 2024
I think the only major remaining task in this issue is a PR that fixes the base bound on master and a backport to 3.12. Am I right? Volunteers?
Mikolaj commentedon May 13, 2024
It's been merged and backported. Is there anything else we could do? If not, shall we close this ticket?