Skip to content

Mtl 2.3 Release Prep  #86

Closed
Closed

Description

@emilypi

This is release prep for the 2.3 release of mtl.

TODO


  • Add existing typeclass instances for SelectT
  • MonadAccum (including documentation)
  • MonadSelect (including documentation)
  • Compatibility with transformers-0.6
  • Changelog entries
  • Remove all re-exports
  • Version narrowing
  • Cut a release

Activity

  1. turion commented on Jul 16, 2021

    @turion
    Contributor

    I can send a MonadAccum PR if people would want this.

  2. chessai commented on Jul 16, 2021

    @chessai
    Member

    Edited the list to reflect a few new things that need to be done

  3. chessai commented on Sep 3, 2021

    @chessai
    Member

    Confirmed that mtl master can build with transformers-0.6

  4. jberryman commented on Sep 28, 2021

    @jberryman

    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.

  5. emilypi commented on Sep 28, 2021

    @emilypi
    MemberAuthor

    @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.

  6. phadej commented on Oct 21, 2021

    @phadej
    Contributor

    Any update on this? Not having mtl release is holding quite a lot from upgrading to transformers-0.6.

  7. turion commented on Oct 21, 2021

    @turion
    Contributor

    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.

  8. phadej commented on Nov 3, 2021

    @phadej
    Contributor

    friendly fortnightly ping

  9. matobet commented on Nov 13, 2021

    @matobet
    Contributor

    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?

  10. chessai commented on Nov 13, 2021

    @chessai
    Member
  11. phadej commented on Nov 13, 2021

    @phadej
    Contributor

    @chessai that release candidate doesn't seem to allow transformers-0.6

  12. chessai commented on Nov 13, 2021

    @chessai
    Member

    @chessai that release candidate doesn't seem to allow transformers-0.6

    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).

  13. phadej commented on Nov 13, 2021

    @phadej
    Contributor

    @chessai what a reason to not do #68 in mtl-2.3. I'm afraid that mtl-3 will never happen.

    EDIT: I'll write a patch ASAP if we can get it into mtl-2.3.

  14. mrkkrp commented on Nov 19, 2021

    @mrkkrp

    Is there any estimate when mtl-2.3 will be released?

  15. chessai commented on Nov 19, 2021

    @chessai
    Member
  16. 28 remaining items

  17. kozross commented on May 1, 2022

    @kozross
    Collaborator

    @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.

  18. tomjaguarpaw commented on May 1, 2022

    @tomjaguarpaw
    Member

    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 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.

  19. emilypi commented on May 1, 2022

    @emilypi
    MemberAuthor

    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.

  20. emilypi commented on May 1, 2022

    @emilypi
    MemberAuthor

    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:

    > curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
    > ghcup install ghc 8.8.4

    Rust has to do this on 18.04, and they've clearly not had trouble with success.

  21. tomjaguarpaw commented on May 1, 2022

    @tomjaguarpaw
    Member

    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.

  22. Kleidukos commented on May 1, 2022

    @Kleidukos
    Member

    @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.

  23. emilypi commented on May 1, 2022

    @emilypi
    MemberAuthor

    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.

  24. tomjaguarpaw commented on May 1, 2022

    @tomjaguarpaw
    Member

    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.)

  25. andreasabel commented on May 1, 2022

    @andreasabel
    Member

    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:

    1. RC3, dropping reexports (requiring lots of fixing downstream),
    2. 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.

  26. Bodigrim commented on May 1, 2022

    @Bodigrim

    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.

  27. andreasabel commented on May 4, 2022

    @andreasabel
    Member

    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.

  28. kozross commented on May 7, 2022

    @kozross
    Collaborator

    @emilypi I think we have all necessary changelog entries at this point?

  29. emilypi commented on May 7, 2022

    @emilypi
    MemberAuthor

    Sounds like we do. I'll cut a release tomorrow.

  30. kozross commented on May 8, 2022

    @kozross
    Collaborator

    Release has been cut, and is on Hackage. Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions