[GHC] #11454: Do not suggest deprecated flags
GHC
ghc-devs at haskell.org
Mon Jan 18 21:56:13 UTC 2016
#11454: Do not suggest deprecated flags
-------------------------------------+-------------------------------------
Reporter: thomie | Owner:
Type: task | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.3
Keywords: newcomer | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
When you misspell the name of a flag, GHC outputs a nice list of similar
flags that do exist:
{{{
$ ghc-8.0.1 -W-redundant-constraints
ghc: unrecognised flag: -W-redundant-constraints
did you mean one of:
-Wredundant-constraints
-Wno-redundant-constraints
-fwarn-redundant-constraints
}}}
But since the `-fwarn` flags are deprecated, they should not be suggested.
Neither should any of the other deprecated flags.
For a newcomer: the code is `compiler/main/DynFlags.hs`.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11454>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list