<div dir="ltr"><div>Hi and thank you both!</div><div><br></div><div>For disambiguation the tick may be required for syntactically empty and one element lists, right? As only these can be ambiguous at locations where a type is expected.<br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 20, 2021 at 3:29 PM Adam Gundry <<a href="mailto:adam@well-typed.com">adam@well-typed.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I've created a ticket to request disabling this warning by default:<br>
<a href="https://gitlab.haskell.org/ghc/ghc/-/issues/20531" rel="noreferrer" target="_blank">https://gitlab.haskell.org/ghc/ghc/-/issues/20531</a><br>
<br>
I'm not sure if this needs a full ghc-proposal.<br>
<br>
Cheers,<br>
<br>
Adam<br>
<br>
<br>
<br>
On 18/10/2021 03:19, Richard Eisenberg wrote:<br>
> As its author, I think -Wunticked-promoted-constructors is a misfeature. It was motivated by the fact that writing [True] when you mean '[True] produces a cascade of obscure kind errors, and so I thought it was good to encourage people to always write the ticks. But the feature does not achieve its goal: because errors squelch warnings, we do not see the warnings if there are any errors. Furthermore, I agree with Adam's post that I've come to prefer a style where we leave off the ticks (where possible).<br>
> <br>
> Bottom line: feel free to turn this warning off.<br>
> <br>
> Richard<br>
> <br>
>> On Oct 16, 2021, at 5:55 AM, Markus Läll <<a href="mailto:markus.l2ll@gmail.com" target="_blank">markus.l2ll@gmail.com</a>> wrote:<br>
>><br>
>> Hi!<br>
>><br>
>> Is there any consensus on unticked promoted constructors -- are they generally safe to use?<br>
>><br>
>> Currently the warning is part of -Wall, but having promoted constructors unticked is just aesthetically nicer.<br>
>><br>
>><br>
>> Thanks,<br>
>><br>
>> -- <br>
>> Markus Läll<br>
<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>
118 Wymering Mansions, Wymering Road, London W9 2NF, England<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Markus Läll<br></div>