[Haskell-cafe] Significant changes in -Wall for GHC 7.10

Alexander Eyers-Taylor aeyerstaylor11 at gmail.com
Tue May 5 16:41:52 UTC 2015

Sorry I forgot to reply to the list. Here is my earlier email

-------- Forwarded Message --------
Subject: 	Re: [Haskell-cafe] Significant changes in -Wall for GHC 7.10
Date: 	Tue, 05 May 2015 16:29:46 +0100
From: 	Alexander Eyers-Taylor <aeyerstaylor11 at gmail.com>
To: 	Omari Norman <omari at smileystation.com>

Those seem to be preciously the flags enabled by -Wall. It seems when
updating the documentation the negative was missed and it was updated to
list the flags enabled by -Wall. I have submitted a ticket (#10386) to
fix the bug.

On 05/05/15 16:03, Omari Norman wrote:
> CORRECTION:  -fwarn-trustworthy-safe was not in -Wall in GHC 7.8, but
> -fwarn-trustworthy-safe did not exist in GHC 7.8.
> On Tue, May 5, 2015 at 10:54 AM, Omari Norman <omari at smileystation.com
> <mailto:omari at smileystation.com>> wrote:
>     I noticed some significant changes to the flags included with
>     -Wall in GHC 7.10.  Many flags that were previously included in
>     -Wall are now not included.  These include:
>     -fwarn-type-defaults
>     -fwarn-name-shadowing
>     -fwarn-missing-signatures
>     -fwarn-hi-shadowing
>     -fwarn-orphans
>     -fwarn-unused-do-bind
>     -fwarn-trustworthy-safe
>     I can't find any mention in the release notes of this change in
>     behavior.
>     I was wondering what the rationale is for these changes?  Any link
>     to relevant discussion would be appreciated if it exists.
>     Also, what opinion do people have?  I previously kept my code
>     -Wall clean, but sometimes that would be a pain.  For instance I
>     would munge local names so they wouldn't trigger
>     -fwarn-name-shadowing, and I would add signatures to integers so
>     they wouldn't trigger -fwarn-type-defaults.  In fact, I only
>     noticed this change in behavior in 7.10 because I was considering
>     dumping -Wall, and when I looked at the 7.10 manual I saw that it
>     does not enable -fwarn-name-shadowing.  (I still use 7.8 but
>     Google pulled the 7.10 manual.)  Does this change indicate that
>     people were finding -Wall too onerous and, thus, not using it?
>     I do remember reading complaints about -fwarn-unused-do-bind being
>     added to -Wall, but I previously felt dirty about name shadowing
>     though I wondered if munging names to avoid shadowing was actually
>     worse.
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list