<div dir="ltr">Just to provide backing to your claim <a class="gmail_plusreply" id="plusReplyChip-3" href="mailto:marlowsd@gmail.com" tabindex="-1">@Simon Marlow</a>, yes it is the same for us 8.10 -> 9.2 -> 9.6, we might effectively go 8.10 -> 9.6 due to performance regressions in 9.2. However, we do use a large part of the hackage ecosystem, and various people _do_ use compilers other than our production compiler in their respective projects CI setup. Thus they _do_ see deprecations, and necessary migrations, _and_ also fix up dependencies in the ecosystem. Thus the cost of upgrading is spread across multiple people and a longer time horizon than trying to upgrade a rather large _living_ codebase at once, by a small "upgrade" team.<div><br></div><div>I also believe that if switching out the compiler was more trivial, we'd be trialing newer compilers much more frequently and quicker, and would be adopting new compilers more frequently. After all, we contribute to those compilers and would like to make use of our own contributions, instead of having to backport them all the time.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 22 Sept 2023 at 18:36, Simon Marlow <<a href="mailto:marlowsd@gmail.com">marlowsd@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Thu, 21 Sept 2023 at 13:51, Richard Eisenberg <<a href="mailto:lists@richarde.dev" target="_blank">lists@richarde.dev</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div>I will mull on the actual proposal (I feel there is a solution somewhere here that we haven't hit yet), but I wanted to respond to Simon M's comment about deferred cost: The migration cycle is more than just a deferment: it's a smearing. That is, if something breaks suddenly, everyone must upgrade in unison: hard. If something breaks slowly, then people can update their projects when they choose during the migration period: much easier. That difference might not affect an enterprise all that much, but I think it has a sizable impact on open-source developers.</div></blockquote><div><br></div><div>Yes you're right, and I'm reluctant to further derail this thread but I think it's important to note that as the volume of changes increases, the cost of upgrades increases with it, and so the frequency of upgrades reduces, which nullifies the benefits of smearing the cost of a change with deprecations. Eventually, some customers are jumping over so many releases at once that they miss all the intermediate deprecations. This is the reality where I work, and I believe other companies too.</div><div><br></div><div>Cheers</div><div>Simon<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div><br></div><div>Richard<br><div><br><blockquote type="cite"><div>On Sep 21, 2023, at 8:34 AM, Simon Marlow <<a href="mailto:marlowsd@gmail.com" target="_blank">marlowsd@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div>I might be an outlier here, but deferring the change to a later release and adding an intermediate warning doesn't make it any less bad.<br></div><div><br></div><div>This is one cultural aspect of our community I'd like to shift: the expectation that it's OK to make breaking changes as long as you warn about them or go through a migration cycle. It just isn't! (and I speak as someone who used to make lots of changes, I'm now fully repentant!). That's not to say that we shouldn't ever change anything, but when considering the cost/benefit tradeoff adding a migration cycle doesn't reduce the cost, it just defers it.<br></div><div><br></div><div>Cheers</div><div>Simon<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 20 Sept 2023 at 08:25, Adam Gundry <<a href="mailto:adam@well-typed.com" target="_blank">adam@well-typed.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">I agree with Joachim's position here.<br>
<br>
Having a -Wsevere group at all would be a good start, but the problem <br>
with stopping at "best-practice guidance" rather than changing the <br>
defaults is that it benefits only those who learn about and follow the <br>
guidance. So it remains a footgun for newcomers.<br>
<br>
Regarding migration, given that GHC has issued these warnings by default <br>
for some time, I don't think we need be too shy about upgrading their <br>
severity. We could have -Wcompat imply -Werror=severe, but that <br>
complicates the semantics of warning groups, and will help only those <br>
who use -Wcompat but don't fix warnings that occur with -Wdefault.<br>
<br>
I suppose as Moritz suggests we could introduce and advertise -Wsevere <br>
in 9.10, and mention in the warning message that this will be an error <br>
in the future, but only enable -Werror=severe in 9.14 (or 9.12?), so <br>
9.10 would give something like:<br>
<br>
M.hs:8:10: warning: [-Wmissing-methods]<br>
• No explicit implementation for<br>
‘<>’<br>
• In the instance declaration for ‘Semigroup T’<br>
• Warning: this may lead to an infinite loop or runtime exception.<br>
• This will become an error by default in a future GHC release;<br>
use -Werror=severe to make severe warnings into errors now.<br>
<br>
Then in a future release:<br>
<br>
M.hs:8:10: error: [-Wmissing-methods, -Werror=missing-methods]<br>
• No explicit implementation for<br>
‘<>’<br>
• In the instance declaration for ‘Semigroup T’<br>
• Warning: this may lead to an infinite loop or runtime exception.<br>
• Use -Wwarn=missing-methods to permit this anyway.<br>
<br>
Would that be a reasonable compromise?<br>
<br>
Adam<br>
<br>
<br>
On 19/09/2023 22:13, Joachim Breitner wrote:<br>
> Hi,<br>
> <br>
> Am Dienstag, dem 19.09.2023 um 15:26 +0100 schrieb Simon Peyton Jones:<br>
>> Maybe implementing this "severe" category, but not changing its<br>
>> default to error, would get us some of the way there? Then "best-<br>
>> practice guidance" could be "use -Werror=severe", and job done.<br>
>> That's a bit easier to say than saying "use -Werrror=missing-methods<br>
>> -Werror= ..." etc.<br>
> <br>
> anyone using `-Werror` would already get this behavior. So what is the<br>
> useful for using `-Werror=severe` instead? Presumably the rationale is:<br>
> <br>
> -Werror, while great _during_ development or in leaf packages, is not<br>
> is not good idea in _released_ code, i.e. code that is compiled by<br>
> others, as that code needs to keep working even as compilers and<br>
> dependencies change, such as libraries on hackage, or executables<br>
> built by distro packagers.<br>
> That’s why -Werror is frowned upon there.<br>
> <br>
> But some changes in upstream packages _ought_ to cause compilation to<br>
> fail, because they really need downstream code changes. These will<br>
> cause severe warnings, and therefore -Werror=severe is desirable<br>
> even for released code.<br>
> <br>
> Is that a good way of phrasing your thoughts there?<br>
> <br>
> It looks reasonable to me; if we think of deferable type error as<br>
> severe warnings, it totally fits this description: It would be<br>
> _possible_ to keep compiling the downstream code, but it would not be<br>
> desirable. That's why compilation fails, and that’s why we don’t defer<br>
> type errors by default.<br>
> <br>
> But if -Werror=severe is desirable generally, it would be unfortunate<br>
> if we cannot make it the default. If not right away, then maybe with a<br>
> suitable migration strategy? (Although I wonder if there are many users<br>
> out there that pay attention to deprecation warnings, e.g. watch<br>
> -Wdeprecation, that would not have already fixed -Wdefault warnings<br>
> about missing fields/methods already…)<br>
> <br>
> <br>
> Cheers,<br>
> Joachim<br>
<br>
-- <br>
Adam Gundry, Haskell Consultant<br>
Well-Typed LLP, <a href="https://www.well-typed.com/" rel="noreferrer" target="_blank">https://www.well-typed.com/</a><br>
<br>
Registered in England & Wales, OC335890<br>
27 Old Gloucester Street, London WC1N 3AX, England<br>
<br>
_______________________________________________<br>
ghc-steering-committee mailing list<br>
<a href="mailto:ghc-steering-committee@haskell.org" target="_blank">ghc-steering-committee@haskell.org</a><br>
<a href="https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee" rel="noreferrer" target="_blank">https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee</a><br>
</blockquote></div>
_______________________________________________<br>ghc-steering-committee mailing list<br><a href="mailto:ghc-steering-committee@haskell.org" target="_blank">ghc-steering-committee@haskell.org</a><br><a href="https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee" target="_blank">https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee</a><br></div></blockquote></div><br></div></div></blockquote></div></div>
_______________________________________________<br>
ghc-steering-committee mailing list<br>
<a href="mailto:ghc-steering-committee@haskell.org" target="_blank">ghc-steering-committee@haskell.org</a><br>
<a href="https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee" rel="noreferrer" target="_blank">https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee</a><br>
</blockquote></div>