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
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.
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...
@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.
@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.
@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?
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.
Activity
Bodigrim commentedon May 8, 2022
ExceptTwas dropped in bfddbe8 (merged in #108) with the commit message "Remove some re-exports, raise minimum GHC to 8.6, remove unneeded CPP". WhileExceptTis a re-export fromtransformersindeed, every other entity fromtransformerssuch asReaderT,WriterT, etc., has survived, and AFAIR only re-exports frombasesuch asControl.Monadwere planned for removal.kozross commentedon May 8, 2022
@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.
andreasabel commentedon May 8, 2022
I observe that
mtldoes 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.1was 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...ekmett commentedon May 8, 2022
It seems another beer is at least long overdue. Test suites are on @kosross, however. ;)
Bodigrim commentedon May 8, 2022
@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.
andreasabel commentedon May 8, 2022
I agree with @Bodigrim. There is no urgency now, as the problem in
mtl-2.3can be worked around by importing fromControl.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...)
kozross commentedon May 8, 2022
@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.
sjakobi commentedon May 8, 2022
@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?Abastro commentedon May 9, 2022
Ouch, got bitten by this. Mistakes could even sneak into
mtlI guess.Is there no way to mark beta release in PVP?
andreasabel commentedon May 9, 2022
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).
Abastro commentedon May 9, 2022
Yea, wondering if this could be avoided in the future by using some kind of beta branch, sounds like it would be hard.
andreasabel commentedon May 10, 2022
Concerning tests: just released
tasty-1.4.2.3does not depend onmtlanymore, so it can be used for a testsuite. (Thanks to @Bodigrim.)sjakobi commentedon May 11, 2022
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:
texmathalso fails to build due to this issue.emilypi commentedon May 11, 2022
@kozross and I will review and get something out by EOW. There are a few fiddly bits that need sorting out with the docs.
andreasabel commentedon May 19, 2022
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.