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
{{ message }}
Repository navigation
MTL doesn't adhere to PVP as it re-exports e.g. Control.Monad #68
Yes. That level of impact is well within my expectation.
This has been a wart in the design of this library that we've suffered with for 15 years, because at no point has it ever been "the right time to fix it." The thing is, waiting to fix it ever longer will simply increases our exposure without end.
If our stated intention is to do this in 3.0 then all that we do by pushing this off is make sure that the substantive changes we want to make there to improve are conflated with this and ensuring we have even more code to unbreak.
If our intention is not to do this in 3.0 then I really don't think this is maintenance, it is life support.
The patches consist of adding imports, not making complicated semantic changes.
The cost of the status quo is that adding any new combinators to Control.Monad or Control.Monad.Fix or Control.Monad.Trans means that any existing user of MTL modules that uses any of the new names we take in base may have to hide the same import a dozen times or more to keep using their code.
With perfect hindsight, pulling this bandaid off when it was causing this pain to users more actively during the MonadFail switch-over would have been better.
changed the title [-]MTL doesn't adher to PVP as it re-exports e.g. Control.Monad[/-][+]MTL doesn't adhere to PVP as it re-exports e.g. Control.Monad[/+]on Jan 28, 2022
This has been a wart in the design of this library that we've suffered with for 15 years, because at no point has it ever been "the right time to fix it." The thing is, waiting to fix it ever longer will simply increases our exposure without end.
I do not see many developers suffering from this wart for 15 years. If that was the case, we'd see lots of packages choosing to import mtl qualified or with explicit import list, but this is not so.
The breakage allows for backwards-compatible patches, which proponents of the change could have provided beforehand to alleviate the pain of migration. Yet I've seen no such effort underway in 2.5 years this ticket is open.
I believe such a nuclear change, breaking all downstream dependencies, deserves a public presentation and community discussion before being made. A brief line in a changelog does not make it justice.
Activity
chessai commentedon Dec 9, 2019
would it be okay to just remove this?
phadej commentedon Dec 9, 2019
Remove re-export? I'd be very fine with that, the added convenience is minuscule IMO.
ekmett commentedon Oct 18, 2020
I think we should just pull off the bandaid and do this.
phadej commentedon Jan 28, 2022
As the #99 is reverted this should be re-opened.
ekmett commentedon Jan 28, 2022
So much for pulling off the bandaid. sigh
ekmett commentedon Jan 28, 2022
I do want to go squarely on record as saying that reverting this change is the wrong decision.
sjakobi commentedon Jan 28, 2022
@ekmett Are you aware of the discussion in #101 about how to best respond to the breakage that pulling off this bandaid would cause?
The decision to revert it certainly wasn't done lightly.
ekmett commentedon Jan 28, 2022
Yes. That level of impact is well within my expectation.
This has been a wart in the design of this library that we've suffered with for 15 years, because at no point has it ever been "the right time to fix it." The thing is, waiting to fix it ever longer will simply increases our exposure without end.
If our stated intention is to do this in 3.0 then all that we do by pushing this off is make sure that the substantive changes we want to make there to improve are conflated with this and ensuring we have even more code to unbreak.
If our intention is not to do this in 3.0 then I really don't think this is maintenance, it is life support.
ekmett commentedon Jan 28, 2022
The patches consist of adding imports, not making complicated semantic changes.
The cost of the status quo is that adding any new combinators to
Control.MonadorControl.Monad.FixorControl.Monad.Transmeans that any existing user of MTL modules that uses any of the new names we take inbasemay have to hide the same import a dozen times or more to keep using their code.With perfect hindsight, pulling this bandaid off when it was causing this pain to users more actively during the
MonadFailswitch-over would have been better.ekmett commentedon Jan 28, 2022
Why is it rational that
import Control.Monad.RWSshould bring into scopefix?Meanwhile,
import Control.Monad.RWS.Classspuriously does not.[-]MTL doesn't adher to PVP as it re-exports e.g. Control.Monad[/-][+]MTL doesn't adhere to PVP as it re-exports e.g. Control.Monad[/+]chessai commentedon Jan 28, 2022
(fixed a typo)
See #103 (comment)
Bodigrim commentedon Jan 31, 2022
I do not see many developers suffering from this wart for 15 years. If that was the case, we'd see lots of packages choosing to import
mtlqualified or with explicit import list, but this is not so.The breakage allows for backwards-compatible patches, which proponents of the change could have provided beforehand to alleviate the pain of migration. Yet I've seen no such effort underway in 2.5 years this ticket is open.
I believe such a nuclear change, breaking all downstream dependencies, deserves a public presentation and community discussion before being made. A brief line in a changelog does not make it justice.
ekmett commentedon Jan 31, 2022
There has been no effort underway on anything around the
mtlin the 2.5 years this ticket has been open.emilypi commentedon May 8, 2022
with
mtl-2.3, i believe we addressed this. Please hmu to reopen if there's more non-compliance.