[GHC] #11583: Make warning names more consistent
GHC
ghc-devs at haskell.org
Tue Feb 16 11:42:03 UTC 2016
#11583: Make warning names more consistent
-------------------------------------+-------------------------------------
Reporter: bgamari | Owner:
Type: task | Status: new
Priority: normal | Milestone: 8.2.1
Component: Compiler | Version: 7.10.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Description changed by bgamari:
@@ -1,3 +1,5 @@
- Sven Panne points out that current warning naming conventions used in GHC
- are rather inconsistent. Since we are moving away from `-fwarn-` to `-W`
- it would be nice if we could also try to fix up the names themselves.
+ Sven Panne [[https://mail.haskell.org/pipermail/ghc-
+ devs/2016-February/011393.html|points out]] that current warning naming
+ conventions used in GHC are rather inconsistent. Since we are moving away
+ from `-fwarn-` to `-W` it would be nice if we could also try to fix up the
+ names themselves.
New description:
Sven Panne [[https://mail.haskell.org/pipermail/ghc-
devs/2016-February/011393.html|points out]] that current warning naming
conventions used in GHC are rather inconsistent. Since we are moving away
from `-fwarn-` to `-W` it would be nice if we could also try to fix up the
names themselves.
We do, however, want to make sure that transition isn't more
painful for users than necessary. For instance, the user should be able
to get useful feedback from the compiler on what warning flags have
changed with `s/-fwarn-/-W/`
To this end I recommend the following,
* We write down a consistent vocabulary for warning flag names
* We keep `-fwarn-` flags as they are currently
* We keep the inconsistently named -W flags corresponding to these
`-fwarn-` flags
* We add consistently named `-W` flags alongside these
* We set a timeline for deprecating the inconsistent forms (perhaps in
three or four releases)
--
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11583#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list