[Haskell-cafe] Enable -Wall by default?

Tom Ellis tom-lists-haskell-cafe-2017 at jaguarpaw.co.uk
Tue Dec 22 19:31:36 UTC 2020


On Tue, Dec 22, 2020 at 08:19:57PM +0100, Ben Franksen wrote:
> Am 22.12.20 um 12:18 schrieb Oleg Grenrus:
> > 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.
> > 
> > It is
> > 
> > https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4614
> 
> Nice!
> 
> > Though not -Wpartial-fields (definition site), but
> > -Wincomplete-record-updates (use site).
> 
> Is there a specific reason or is it just that it wasn't included in the
> proposal?

I don't think it even existed when I made the proposal!  It seems
to have appeared in 8.4 in March 2018.

https://hackage.haskell.org/package/base/changelog

https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/libraries/version-history

https://downloads.haskell.org/~ghc/8.2.1/docs/html/users_guide/using-warnings.html

https://downloads.haskell.org/~ghc/8.4.1/docs/html/users_guide/using-warnings.html

Tom


More information about the Haskell-Cafe mailing list