[Haskell-cafe] Enable -Wall by default?

Oleg Grenrus oleg.grenrus at iki.fi
Tue Dec 22 11:18:02 UTC 2020


> Yes, this should definitely be fixed.

It is

https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4614

Though not -Wpartial-fields (definition site), but
-Wincomplete-record-updates (use site).

- Oleg

On 22.12.2020 1.36, Ben Franksen wrote:
> Am 22.12.20 um 00:03 schrieb Henning Thielemann:
>> On Thu, 10 Dec 2020, Fumiaki Kinoshita wrote:
>>
>>> [0] https://www.snoyman.com/blog/2020/12/haskell-bad-parts-3
>> He's pretty right about pattern matching and -Wall and
>> -Wincomplete-uni-patterns and -Wpartial-fields. It's surprising that the
>> two latter ones are not part of -Wall. But this is not your proposal.
> Yes, this should definitely be fixed.
>
>> I have always -Wall on, especially during early development. I can
>> ignore warnings. But I will always remove the cause for warnings before
>> making a commit. Warnings remind me on the unfinished bits. Thus also
>> warnings about unused imports, unused parameters, unused functions are
>> very important for me.
> A very good point, I have run into that problem a lot lately.
>
> Still, this is also not the OP's proposal.
>
> Cheers
> Ben
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.


More information about the Haskell-Cafe mailing list