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
@jberryman we may be able to yeah. I think now that the CLC elections are done and we're resolving procedural issues, the next steps are for @chessai and I to sync on when we have time to address this. I'm leaning towards just cutting a release currently. Stay tuned.
Sorry, I'm behind with polishing MonadAccum, but I hope it's not holding up the release? I believe it's not necessary to ship it with the next version. But in case it is, I can speed up.
Could we, in theory, cut a 2.3.0 release with the transformers bound bump to let the ecosystem upgrade ASAP and deliver the rest of the checklist items in subsequent 2.3.z versions?
@andreasabel With all due respect to both Ubuntu and Stack, I simply cannot see why I should carry around their legacy, and frankly bad, decisions. GHC 8.0 is at this point something like five years old, and predates a tonne of improvements which the vast majority of the ecosystem can, and does, take for granted. Likewise, why anyone would use Stack in 2022 is completely beyond me, as literally any real benefit it ever had has long been superceded by a combination of cabal-install-3.0 and above and ghcup, even on Windows, which until fairly recently had been the only real use case.
Limiting to GHC 8.6 is not 'cutting off the majority of GHC versions' - it is cutting off a small minority, even by the most conservative estimate. It also allows us to rid ourselves a lot of maintenance cruft, which frankly should not be our responsibility to cart around because of (ultimately) downstream decisions. If Ubuntu want to package a five-year-old compiler, it's their problem to work with our decisions, not the other way around. Likewise, if Stack have a 'if we move so must you' policy of the sort you describe, it's their bad decision, and people should blame them and work around their bad choices, rather than forcing us to do it instead.
Last but not least, absolutely nothing is stopping absolutely anyone from just using the older mtl for compatibility: the older versions will not vanish magically just because 2.3 comes into existence. Them choosing to do this limits them way beyond something like transformers-0.6, but that's a problem that's pretty much outside of the purview of mtl. I simply do not accept this idea that I have to cart around the lowest common denominator of assumptions for every downstream possible forever and impede progress and improvements on that basis.
On the one hand, it won't hurt me personally if mtl's GHC dependency is raised all the way up to 8.6. On the other hand, making a reasonable effort to maintain a wider range of supported versions seems desirable. Perhaps the effort required is unreasonable, though.
Now, @andreasabel points out that once Stackage nightly switches to mt-2.3, anyone using nightly must also switch to mtl-2.3. But this is puzzling to me for a couple of reasons. Firstly, someone who wants to not upgrade could just not be on nightly, couldn't they? Secondly, doesn't using a particular Stackage package set require you to use a particular GHC version anyway? Can someone on nightly actually use GHC < 8.6 at all? (I'm not a Stackage or Stack user so maybe my puzzlement is due to missing some fundamental understanding.)
That said, I'm further puzzled why we can't release a non-breaking version with support for transformers-0.6. If that is a possible option then it seems unreasonable not to take it.
On the other hand, making a reasonable effort to maintain a wider range of supported versions seems desirable.
Keyword reasonable here. A reasonable effort would be to maintain a fixed window of support for older GHCs. Right now, the baseline of 8.6 is 3 years old. This is a fine window for support. What is unreasonable, is to take on the burden of supporting GHCs that people do not use. The 8.6 baseline is statistically supported by the State of the Haskell survey. 6 months ago GHC <8.6 was already a diminishing ROI. Today, the returns are even less significant. The argument for older GHCs is poor and based upon speculation, and places a maintenance burden on us that has burnt out generations of CLC members in the past across many different packages.
Now, @andreasabel points out that once Stackage nightly switches to mt-2.3, anyone using nightly must also switch to mtl-2.3. But this is puzzling to me for a couple of reasons. Firstly, someone who wants to not upgrade could just not be on nightly
Yes. You opt in to using nightly. And yes, it will be a large coordinated effort ala the recent aeson-2, hashable, text-2, bytestring-0.11 upgrades etc. If people do not want to upgrade, they can pin an LTS, or they can require an upper bound in their cabal file. These are opt-in changes.
That said, I'm further puzzled why we can't release a non-breaking version with support for transformers-0.6. If that is a possible option then it seems unreasonable not to take it.
We've had this discussion, and the maintainers agreed that it would be best to just rip the bandaid off and improve the library instead of constantly kicking the ball down the road. At some point we have to stop being avoidant and accept the pain. We've decided, using our our discretion as maintainers, that this was the time.
Also, please keep in mind that while Ubuntu LTS 18.04 is pinned to 8.0 in universe, this does not stop the user from installing their own locally, as they would with ghcup or stack. The reason they are pinned to that particular GHC is a mystery, as Ubuntu 20.04 jumps to 8.8 as a baseline in universe. My assumption is that whoever maintained the package stopped, for whatever reason. Either way, I'm not gonna maintain an extra 2 years of GHCs just because people don't want to add these lines to their setup:
the maintainers agreed that it would be best to just rip the bandaid off and improve the library
Sure, I'm in favour of ripping off the bandaid ASAP. I just don't understand why, at the same time as ripping off the bandaid and releasing 2.3, there can't also be a release of 2.2 that bumps transformers.
@tomjaguarpaw From reading the comments of the various parties here, I can judge that efforts are spread too thin, and such a compatible release would require more time and energy than is currently available.
It would involve not merging any real fixes for any outstanding issues because they're hard, and just merging more CPP that we'd rip out in the next merge from @kozross the following day. That's not an exaggeration. It would literally be upon @kozross merging master into his branch. Again, we kick the can down the road. Please trust that we've made our decision, and we're going through with it, and we're going to stop derailing for conveniences. Enough is enough.
I'm further puzzled why we can't release a non-breaking version with support for transformers-0.6
After having investigated, I can answer my own question: there's at least one reason why supporting transformers-0.6 requires a major version bump in mtl: it drops ListT and ErrorT, requiring the equivalent change from mtl. That was a crucial fact that I have been missing in the discussion of all this. (Perhaps there are other reasons besides.)
Agda certainly has customers that are not software developers nor system administrators, but mathematicians (yes, the picture that this word brings to your mind is accurate). They are not following the latest developments in the Haskell ecosystem, but they want to install Agda on their old OSs. Having to reinstall GHC or upgrade the OS is a big nuisance for them.
There were always outcries when we dropped support for old GHCs, so we fixed our policy to wait for the end-of-life of Ubuntu LTS before we dropped one. The next end-of-life is April 2023 for Ubuntu LTS 18.04, and this is when we drop GHC 8.0. In one year.
So, yes, there maybe be a survey that states that only so many percent still use a GHC older than 3 years. Well, I am pretty sure that the mentioned Agda customers have not answered the survey and are not represented. I haven't answered the survey either. I do not answer surveys. They are not an objective means to data. A census would be one.
But back to topic about the release of mtl-2.3. There are already two recent RCs:
RC3, dropping reexports (requiring lots of fixing downstream),
RC4, not dropping reexports.
So, a decision is needed, but both of these release alternatives are ready, if I understood correctly.
Why then starting all over and putting more controversial stuff on the table (dropping GHCs)?
P.S.: Reconsidering, I think dropping GHCs from mtl is actually not so harmful since I can continue to use the older mtl for older GHCs. I will just be blocked from using any features of the new mtl. However what stands is that I must also support the newer mtl if I want to stay in stackage nightly (which is the gate to the stackage LTSs). If no GHCs are dropped in mtl-2.3 I can simply migrate to mtl-2.3 dropping the older versions.
As already pointed out by @phadej above, there is nothing to win in terms of CPP from dropping GHC 8.0 support. Dropping GHC < 8.0 + dropping transformers < 0.6 is enough to get rid of any CPP in mtl, so I personally do not see much benefit in artificially reducing the support range even further immediately.
There are situations when GHC from system packages is the only bindist available. Admittedly, these cases are rare, but not extinct, e. g., if you run Ubuntu 18.04 on s390x or ppc64 architectures, there are no other options than a system package with GHC 8.0.
On the other hand, it's true that old versions of mtl are not disappearing overnight, and few people override pre-installed boot packages.
Generally speaking, the cost of restricting the scope of a new version of package X (e.g. by dropping GHCs) shows when you fix bugs in X. If you have restricted the scope in the latest release of X, you might have to back-port the fixes to older releases of X.
Not sure how relevant this is to mtl (which we expect to be bug-free).
However, in general, if I have to choose between keeping #ifs or backporting to older releases, I keep the #ifs.
Activity
turion commentedon Jul 16, 2021
I can send a
MonadAccumPR if people would want this.chessai commentedon Jul 16, 2021
Edited the list to reflect a few new things that need to be done
chessai commentedon Sep 3, 2021
Confirmed that mtl master can build with transformers-0.6
jberryman commentedon Sep 28, 2021
Would someone be able to cut a release with what's already in
master? It's a shame basic stuff like #67 has been sitting unreleased for years.emilypi commentedon Sep 28, 2021
@jberryman we may be able to yeah. I think now that the CLC elections are done and we're resolving procedural issues, the next steps are for @chessai and I to sync on when we have time to address this. I'm leaning towards just cutting a release currently. Stay tuned.
phadej commentedon Oct 21, 2021
Any update on this? Not having
mtlrelease is holding quite a lot from upgrading totransformers-0.6.turion commentedon Oct 21, 2021
Sorry, I'm behind with polishing
MonadAccum, but I hope it's not holding up the release? I believe it's not necessary to ship it with the next version. But in case it is, I can speed up.phadej commentedon Nov 3, 2021
friendly fortnightly ping
matobet commentedon Nov 13, 2021
Could we, in theory, cut a 2.3.0 release with the
transformersbound bump to let the ecosystem upgrade ASAP and deliver the rest of the checklist items in subsequent 2.3.z versions?chessai commentedon Nov 13, 2021
phadej commentedon Nov 13, 2021
@chessai that release candidate doesn't seem to allow
transformers-0.6chessai commentedon Nov 13, 2021
Yeah, that's what rc2 is for. I forgot to bump the bounds before cutting rc1 (though I did already test building with transformers-0.6).
phadej commentedon Nov 13, 2021
@chessai what a reason to not do #68 in
mtl-2.3. I'm afraid thatmtl-3will never happen.EDIT: I'll write a patch ASAP if we can get it into
mtl-2.3.mrkkrp commentedon Nov 19, 2021
Is there any estimate when
mtl-2.3will be released?chessai commentedon Nov 19, 2021
https://discourse.haskell.org/t/ann-release-candidate-for-mtl-2-3/3687
28 remaining items
kozross commentedon May 1, 2022
@andreasabel With all due respect to both Ubuntu and Stack, I simply cannot see why I should carry around their legacy, and frankly bad, decisions. GHC 8.0 is at this point something like five years old, and predates a tonne of improvements which the vast majority of the ecosystem can, and does, take for granted. Likewise, why anyone would use Stack in 2022 is completely beyond me, as literally any real benefit it ever had has long been superceded by a combination of
cabal-install-3.0and above andghcup, even on Windows, which until fairly recently had been the only real use case.Limiting to GHC 8.6 is not 'cutting off the majority of GHC versions' - it is cutting off a small minority, even by the most conservative estimate. It also allows us to rid ourselves a lot of maintenance cruft, which frankly should not be our responsibility to cart around because of (ultimately) downstream decisions. If Ubuntu want to package a five-year-old compiler, it's their problem to work with our decisions, not the other way around. Likewise, if Stack have a 'if we move so must you' policy of the sort you describe, it's their bad decision, and people should blame them and work around their bad choices, rather than forcing us to do it instead.
Last but not least, absolutely nothing is stopping absolutely anyone from just using the older
mtlfor compatibility: the older versions will not vanish magically just because 2.3 comes into existence. Them choosing to do this limits them way beyond something liketransformers-0.6, but that's a problem that's pretty much outside of the purview ofmtl. I simply do not accept this idea that I have to cart around the lowest common denominator of assumptions for every downstream possible forever and impede progress and improvements on that basis.tomjaguarpaw commentedon May 1, 2022
I'm quite puzzled all around here.
On the one hand, it won't hurt me personally if
mtl's GHC dependency is raised all the way up to 8.6. On the other hand, making a reasonable effort to maintain a wider range of supported versions seems desirable. Perhaps the effort required is unreasonable, though.Now, @andreasabel points out that once Stackage nightly switches to
mt-2.3, anyone usingnightlymust also switch tomtl-2.3. But this is puzzling to me for a couple of reasons. Firstly, someone who wants to not upgrade could just not be onnightly, couldn't they? Secondly, doesn't using a particular Stackage package set require you to use a particular GHC version anyway? Can someone onnightlyactually use GHC < 8.6 at all? (I'm not a Stackage or Stack user so maybe my puzzlement is due to missing some fundamental understanding.)That said, I'm further puzzled why we can't release a non-breaking version with support for
transformers-0.6. If that is a possible option then it seems unreasonable not to take it.emilypi commentedon May 1, 2022
Keyword reasonable here. A reasonable effort would be to maintain a fixed window of support for older GHCs. Right now, the baseline of 8.6 is 3 years old. This is a fine window for support. What is unreasonable, is to take on the burden of supporting GHCs that people do not use. The 8.6 baseline is statistically supported by the State of the Haskell survey. 6 months ago GHC <8.6 was already a diminishing ROI. Today, the returns are even less significant. The argument for older GHCs is poor and based upon speculation, and places a maintenance burden on us that has burnt out generations of CLC members in the past across many different packages.
Yes. You opt in to using nightly. And yes, it will be a large coordinated effort ala the recent
aeson-2,hashable,text-2,bytestring-0.11upgrades etc. If people do not want to upgrade, they can pin an LTS, or they can require an upper bound in their cabal file. These are opt-in changes.We've had this discussion, and the maintainers agreed that it would be best to just rip the bandaid off and improve the library instead of constantly kicking the ball down the road. At some point we have to stop being avoidant and accept the pain. We've decided, using our our discretion as maintainers, that this was the time.
emilypi commentedon May 1, 2022
Also, please keep in mind that while Ubuntu LTS 18.04 is pinned to 8.0 in
universe, this does not stop the user from installing their own locally, as they would withghcuporstack. The reason they are pinned to that particular GHC is a mystery, as Ubuntu 20.04 jumps to 8.8 as a baseline inuniverse. My assumption is that whoever maintained the package stopped, for whatever reason. Either way, I'm not gonna maintain an extra 2 years of GHCs just because people don't want to add these lines to their setup:Rust has to do this on 18.04, and they've clearly not had trouble with success.
tomjaguarpaw commentedon May 1, 2022
Sure, I'm in favour of ripping off the bandaid ASAP. I just don't understand why, at the same time as ripping off the bandaid and releasing 2.3, there can't also be a release of 2.2 that bumps
transformers.Kleidukos commentedon May 1, 2022
@tomjaguarpaw From reading the comments of the various parties here, I can judge that efforts are spread too thin, and such a compatible release would require more time and energy than is currently available.
emilypi commentedon May 1, 2022
It would involve not merging any real fixes for any outstanding issues because they're hard, and just merging more CPP that we'd rip out in the next merge from @kozross the following day. That's not an exaggeration. It would literally be upon @kozross merging master into his branch. Again, we kick the can down the road. Please trust that we've made our decision, and we're going through with it, and we're going to stop derailing for conveniences. Enough is enough.
tomjaguarpaw commentedon May 1, 2022
After having investigated, I can answer my own question: there's at least one reason why supporting
transformers-0.6requires a major version bump inmtl: it dropsListTandErrorT, requiring the equivalent change frommtl. That was a crucial fact that I have been missing in the discussion of all this. (Perhaps there are other reasons besides.)andreasabel commentedon May 1, 2022
Agda certainly has customers that are not software developers nor system administrators, but mathematicians (yes, the picture that this word brings to your mind is accurate). They are not following the latest developments in the Haskell ecosystem, but they want to install Agda on their old OSs. Having to reinstall GHC or upgrade the OS is a big nuisance for them.
There were always outcries when we dropped support for old GHCs, so we fixed our policy to wait for the end-of-life of Ubuntu LTS before we dropped one. The next end-of-life is April 2023 for Ubuntu LTS 18.04, and this is when we drop GHC 8.0. In one year.
So, yes, there maybe be a survey that states that only so many percent still use a GHC older than 3 years. Well, I am pretty sure that the mentioned Agda customers have not answered the survey and are not represented. I haven't answered the survey either. I do not answer surveys. They are not an objective means to data. A census would be one.
But back to topic about the release of
mtl-2.3. There are already two recent RCs:So, a decision is needed, but both of these release alternatives are ready, if I understood correctly.
Why then starting all over and putting more controversial stuff on the table (dropping GHCs)?
P.S.: Reconsidering, I think dropping GHCs from
mtlis actually not so harmful since I can continue to use the oldermtlfor older GHCs. I will just be blocked from using any features of the newmtl. However what stands is that I must also support the newermtlif I want to stay instackage nightly(which is the gate to the stackage LTSs). If no GHCs are dropped inmtl-2.3I can simply migrate tomtl-2.3dropping the older versions.Bodigrim commentedon May 1, 2022
As already pointed out by @phadej above, there is nothing to win in terms of CPP from dropping GHC 8.0 support. Dropping GHC < 8.0 + dropping transformers < 0.6 is enough to get rid of any CPP in
mtl, so I personally do not see much benefit in artificially reducing the support range even further immediately.There are situations when GHC from system packages is the only bindist available. Admittedly, these cases are rare, but not extinct, e. g., if you run Ubuntu 18.04 on
s390xorppc64architectures, there are no other options than a system package with GHC 8.0.On the other hand, it's true that old versions of
mtlare not disappearing overnight, and few people override pre-installed boot packages.andreasabel commentedon May 4, 2022
Generally speaking, the cost of restricting the scope of a new version of package X (e.g. by dropping GHCs) shows when you fix bugs in X. If you have restricted the scope in the latest release of X, you might have to back-port the fixes to older releases of X.
Not sure how relevant this is to
mtl(which we expect to be bug-free).However, in general, if I have to choose between keeping #ifs or backporting to older releases, I keep the #ifs.
kozross commentedon May 7, 2022
@emilypi I think we have all necessary changelog entries at this point?
emilypi commentedon May 7, 2022
Sounds like we do. I'll cut a release tomorrow.
kozross commentedon May 8, 2022
Release has been cut, and is on Hackage. Closing this.