Skip to content

mtl-2.3 dropped ExceptT #117

Closed
Closed

Description

@andreasabel

Apparently, mtl-2.3 dropped ExceptT, see e.g.:

This is a bit surprising, as e.g. it has ReaderT and more of that kind: WriterT, RWST, IdentityT ...

Note that this drop is inconsistent with the documentation of mtl-2.3. E.g. the following example now produces a scope error:

The changelog also does not mention this:

So maybe ExceptT was dropped on error?

(Let me add that I am surprised that this release came without a RC...)

Activity

  1. Bodigrim commented on May 8, 2022

    @Bodigrim

    ExceptT was dropped in bfddbe8 (merged in #108) with the commit message "Remove some re-exports, raise minimum GHC to 8.6, remove unneeded CPP". While ExceptT is a re-export from transformers indeed, every other entity from transformers such as ReaderT, WriterT, etc., has survived, and AFAIR only re-exports from base such as Control.Monad were planned for removal.

  2. kozross commented on May 8, 2022

    @kozross
    Collaborator

    @Bodigrim and @andreasabel - you are absolutely right, this was a mistake on my part. I will send a PR today remedying this. Sorry that I missed it.

  3. andreasabel commented on May 8, 2022

    @andreasabel
    MemberAuthor

    I observe that mtl does not have a testsuite. Having tests could prevent such mistakes.
    For a start, examples from the documentation (such as the one I refer to above) could be added to the testsuite.

    Historic note: The release of mtl-2.1 was botched, read at agda/agda@8ce5eb0 (typos included), and this blunder could have been prevented by the simplest test suite trying out the State monad. @ekmett compensated me for may 1.5 day bug hunt in Agda with a beer, but apparently, did not see the necessity to add a test suite...

  4. ekmett commented on May 8, 2022

    @ekmett
    Member

    It seems another beer is at least long overdue. Test suites are on @kosross, however. ;)

  5. Bodigrim commented on May 8, 2022

    @Bodigrim

    @kozross FWIW I beg you not to rush: take your time before the next release, upload a package candidate first, gather user's feedback. There is no urgency to resolve this issue today.

  6. andreasabel commented on May 8, 2022

    @andreasabel
    MemberAuthor

    I agree with @Bodigrim. There is no urgency now, as the problem in mtl-2.3 can be worked around by importing from Control.Monad.Trans.Except.

    If you want, @kozross, you can deprecate mtl-2.3 on hackage: https://hackage.haskell.org/package/mtl/preferred/edit
    (I just deprecated 2.1 there now --- it hadn't been deprecated...)

  7. kozross commented on May 8, 2022

    @kozross
    Collaborator

    @andreasabel and @Bodigrim - I agree, rushing isn't a good idea. However, at least in the repo, we should fix this as soon as is reasonable. I feel pretty responsible here, and the fix isn't hard.

    As for tests: yes, I agree 100%. I will probably add some; in truth, this is a niche I'm fairly familiar with, so if anyone is suited to do this, it's me.

  8. sjakobi commented on May 8, 2022

    @sjakobi
    Member

    @kozross, @emilypi Could you possibly follow up on the announcements for mtl-2.3 and say that there will be another release that restores the presence of ExceptT?

  9. Abastro commented on May 9, 2022

    @Abastro

    Ouch, got bitten by this. Mistakes could even sneak into mtl I guess.
    Is there no way to mark beta release in PVP?

  10. andreasabel commented on May 9, 2022

    @andreasabel
    MemberAuthor

    Is there no way to mark beta release in PVP?

    No. (Maybe there used to be something.) The tool to test releases are release candidates. See, e.g., https://discourse.haskell.org/t/ann-release-candidate-for-mtl-2-3/3687 and #86 (comment).

  11. Abastro commented on May 9, 2022

    @Abastro

    Yea, wondering if this could be avoided in the future by using some kind of beta branch, sounds like it would be hard.

  12. andreasabel commented on May 10, 2022

    @andreasabel
    MemberAuthor

    Concerning tests: just released tasty-1.4.2.3 does not depend on mtl anymore, so it can be used for a testsuite. (Thanks to @Bodigrim.)

  13. sjakobi commented on May 11, 2022

    @sjakobi
    Member

    What's the timeline for a release containing the fix (#121)?

    The current situation is blocking the migration to mtl-2.3 because it's unclear whether packages that fail to build (in part) due to this issue should wait for a fixed release or not. haskell-tls/hs-certificate#129 is an example.

    EDIT: texmath also fails to build due to this issue.

  14. emilypi commented on May 11, 2022

    @emilypi
    Member

    @kozross and I will review and get something out by EOW. There are a few fiddly bits that need sorting out with the docs.

  15. andreasabel commented on May 19, 2022

    @andreasabel
    MemberAuthor

    If you want, @kozross, you can deprecate mtl-2.3 on hackage

    I am worried about the spread of the wildfire, and took action here in my role as Hackage Trustee. I deprecated 2.3. https://hackage.haskell.org/package/mtl/preferred

    You can undo this at any time, and please do so if you see adversary effects of the deprecation of 2.3.

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