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
Question or bug report, I'm not sure which. On Hackage, stm-2.5.0.0 has the bound base (>=4.3 && <4.14). But I'm using the stm package in a project that builds with base-4.15. How does this work? Is it because there is a more up-to-date version of stm bundled with GHC? Can/should Hackage be updated to reflect the latest knowledge?
If you're using base-4.15 that probably means you're using the unreleased 9.0.x version of GHC which has the stm (and other libraries) dependency versions bumped. This is common practice in the GHC tree. Once the release is ready, I believe that's when the new dependency versions get updated in packages and/or Hackage.
So probably there should be nothing done right now. base-4.15 is not even a thing on Hackage yet either.
If the version bounds are causing you issues, I think you should probably be using a released GHC version.
[shana@aya:~/programming/ghc]$ git branch
* (HEAD detached at ghc-9.0.1-release)
bitwise-constant-folding
ghc-8.6.4-rwcs
master
[shana@aya:~/programming/ghc]$ cat libraries/stm/stm.cabal | grep base
base >= 4.3 && < 4.16,
I guess stm bounds should be bumped. I suspect no-one complained before because stm and base both come with GHC so the bounds between on Hackage probably don't really matter?
Yeah, what's on Hackage in some sense doesn't matter, I just figure it's important to have correct documentation. Presumably that information is printed there for people to read it.
Interestingly, I think this is biting me when using the relude package... relude depends on stm directly, which I guess triggers cabal's constraint solver, and results in this error:
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: rep-0.1.0.0 (user goal)
[__1] trying: relude-1.0.0.1 (dependency of rep)
[__2] trying: stm-2.5.0.0 (dependency of relude)
[__3] next goal: base (dependency of rep)
[__3] rejecting: base-4.14.1.0/installed-4.14.1.0 (conflict: stm => base>=4.3
&& <4.14)
[__3] skipping: base-4.15.0.0, base-4.14.1.0, base-4.14.0.0 (has the same
characteristics that caused the previous version to fail: excluded by
constraint '>=4.3 && <4.14' from 'stm')
[__3] rejecting: base-4.13.0.0, base-4.12.0.0, base-4.11.1.0, base-4.11.0.0,
base-4.10.1.0, base-4.10.0.0, base-4.9.1.0, base-4.9.0.0, base-4.8.2.0,
base-4.8.1.0, base-4.8.0.0, base-4.7.0.2, base-4.7.0.1, base-4.7.0.0,
base-4.6.0.1, base-4.6.0.0, base-4.5.1.0, base-4.5.0.0, base-4.4.1.0,
base-4.4.0.0, base-4.3.1.0, base-4.3.0.0, base-4.2.0.2, base-4.2.0.1,
base-4.2.0.0, base-4.1.0.0, base-4.0.0.0, base-3.0.3.2, base-3.0.3.1
(constraint from non-upgradeable package requires installed instance)
[__3] fail (backjumping, conflict set: base, rep, stm)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, stm, relude, rep
I am using cabal build --allow-newer to sidestep the issue.
based on GHC version 8.10.4
Warning: don't know how to find change monitoring files for the installed
package databases for ghcjs
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: criterion-1.5.9.0 (user goal)
[__1] trying: exceptions-0.10.4 (dependency of criterion)
[__2] trying: stm-2.5.0.0 (dependency of exceptions)
[__3] next goal: base (dependency of criterion)
[__3] rejecting: base-4.14.1.0/installed-6zK9hwRU1FG2kosw1Xpoun (conflict: stm
=> base>=4.3 && <4.14)
[__3] skipping: base-4.15.0.0, base-4.14.1.0, base-4.14.0.0 (has the same
characteristics that caused the previous version to fail: excluded by
constraint '>=4.3 && <4.14' from 'stm')
[__3] rejecting: base-4.13.0.0, base-4.12.0.0, base-4.11.1.0, base-4.11.0.0,
base-4.10.1.0, base-4.10.0.0, base-4.9.1.0, base-4.9.0.0, base-4.8.2.0,
base-4.8.1.0, base-4.8.0.0, base-4.7.0.2, base-4.7.0.1, base-4.7.0.0,
base-4.6.0.1, base-4.6.0.0, base-4.5.1.0, base-4.5.0.0, base-4.4.1.0,
base-4.4.0.0, base-4.3.1.0, base-4.3.0.0, base-4.2.0.2, base-4.2.0.1,
base-4.2.0.0, base-4.1.0.0, base-4.0.0.0, base-3.0.3.2, base-3.0.3.1
(constraint from non-upgradeable package requires installed instance)
[__3] fail (backjumping, conflict set: base, criterion, stm)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, stm, criterion, exceptions
Try running with --minimize-conflict-set to improve the error message.
GHC 8.10.4 includes stm at faf9904. GHC 9.0.1 includes 444f672. In both cases the library code is not the one released as v2.5.0.0, because they include 3860cd1.
It would be nice to have the hackage version updated: some distros won't ship 8.10.5 for a while, so having an stm indicating compatibility with >= 8.10 && < 8.10.5 would be good, even for posterity, otherwise those GHC versions will always be a black hole.
Activity
Fuuzetsu commentedon Mar 7, 2021
If you're using
base-4.15that probably means you're using the unreleased9.0.xversion of GHC which has thestm(and other libraries) dependency versions bumped. This is common practice in the GHC tree. Once the release is ready, I believe that's when the new dependency versions get updated in packages and/or Hackage.So probably there should be nothing done right now.
base-4.15is not even a thing on Hackage yet either.If the version bounds are causing you issues, I think you should probably be using a released GHC version.
chris-martin commentedon Mar 9, 2021
Why isn't there even an
stmon Hackage that supportsbase-4.14, though?It isn't released? The GHC blog says it's released.
Fuuzetsu commentedon Mar 9, 2021
Hm, hm, you're right. I even see it on https://www.haskell.org/ghc/download.html ; I don't know what happened, I think I was tripping or something.
I guess you must be right then.
I guess
stmbounds should be bumped. I suspect no-one complained before becausestmandbaseboth come with GHC so the bounds between on Hackage probably don't really matter?chris-martin commentedon Mar 9, 2021
Yeah, what's on Hackage in some sense doesn't matter, I just figure it's important to have correct documentation. Presumably that information is printed there for people to read it.
sloane-shark commentedon Apr 29, 2021
Interestingly, I think this is biting me when using the
reludepackage...reludedepends onstmdirectly, which I guess triggers cabal's constraint solver, and results in this error:I am using
cabal build --allow-newerto sidestep the issue.mode89 commentedon May 3, 2021
Same here. Building with
ghcjs-8.10.4:sjakobi commentedon May 7, 2021
GHC 8.10.4 includes
stmat faf9904. GHC 9.0.1 includes 444f672. In both cases the library code is not the one released as v2.5.0.0, because they include 3860cd1.In fact the GHC release tracking tickets for GHC >= 8.10.2 list the
stmrelease as TODO, e.g. https://gitlab.haskell.org/ghc/ghc/-/issues/18518, https://gitlab.haskell.org/ghc/ghc/-/issues/18216.sjakobi commentedon May 27, 2021
Apparently GHC 8.10.5 will include the new
stm-2.5.0.1release: https://gitlab.haskell.org/ghc/ghc/-/issues/19859Can this issue be closed now?
kquick commentedon May 31, 2021
It would be nice to have the hackage version updated: some distros won't ship 8.10.5 for a while, so having an stm indicating compatibility with >= 8.10 && < 8.10.5 would be good, even for posterity, otherwise those GHC versions will always be a black hole.