[GHC] #11218: Provide `-W(no-)` aliases for `-f(no-)warn` warning flags
#11218: Provide `-W(no-)` aliases for `-f(no-)warn` warning flags -------------------------------------+------------------------------------- Reporter: hvr | Owner: Type: feature | Status: new request | Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: Design/Warnings -------------------------------------+------------------------------------- TODO: description -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11218> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11218: Provide `-W(no-)` aliases for `-f(no-)warn` warning flags -------------------------------------+------------------------------------- Reporter: hvr | Owner: Type: feature request | Status: patch Priority: high | Milestone: 8.0.1 Component: Compiler | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1613 Wiki Page: Design/Warnings | -------------------------------------+------------------------------------- Changes (by hvr): * priority: normal => high * status: new => patch * differential: => Phab:D1613 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11218#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11218: Provide `-W(no-)` aliases for `-f(no-)warn` warning flags -------------------------------------+------------------------------------- Reporter: hvr | Owner: Type: feature request | Status: patch Priority: high | Milestone: 8.0.1 Component: Compiler | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1613 Wiki Page: Design/Warnings | -------------------------------------+------------------------------------- Description changed by bgamari: Old description:
TODO: description
New description: Move warning options out of the `-f` namespace and into `-W` where they belong. See [[Design/Warnings]] for details. -- -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11218#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11218: Provide `-W(no-)` aliases for `-f(no-)warn` warning flags -------------------------------------+------------------------------------- Reporter: hvr | Owner: Type: feature request | Status: patch Priority: high | Milestone: 8.0.1 Component: Compiler | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1613 Wiki Page: Design/Warnings | -------------------------------------+------------------------------------- Comment (by Herbert Valerio Riedel <hvr@…>): In [changeset:"2206fa8cdb1209320f3690690b610320b4810de6/ghc" 2206fa8c/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="2206fa8cdb1209320f3690690b610320b4810de6" Add `-W(no-)xxx` aliases for `-f(no-)warn-xxx` flags This also updates the user's guide to refer to the `-W`-based warning flags by default. Quoting the release note entry: | Warnings can now be controlled with `-W(no-)...` flags in addition to | the old `-f(no-)warn...` ones. This was done as the first part of a | rewrite of the warning system to provide better control over warnings, | better warning messages, and more common syntax compared to other | compilers. The old `-fwarn...`-based warning flags will remain | functional for the forseeable future. This is part of https://ghc.haskell.org/wiki/Design/Warnings and addresses #11218 Reviewed By: hvr, bgamari Differential Revision: https://phabricator.haskell.org/D1613 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11218#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11218: Provide `-W(no-)` aliases for `-f(no-)warn` warning flags -------------------------------------+------------------------------------- Reporter: hvr | Owner: Type: feature request | Status: closed Priority: high | Milestone: 8.0.1 Component: Compiler | Version: Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1613 Wiki Page: Design/Warnings | -------------------------------------+------------------------------------- Changes (by hvr): * status: patch => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11218#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11218: Provide `-W(no-)` aliases for `-f(no-)warn` warning flags -------------------------------------+------------------------------------- Reporter: hvr | Owner: Type: feature request | Status: closed Priority: high | Milestone: 8.0.1 Component: Compiler | Version: Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1613 Wiki Page: Design/Warnings | -------------------------------------+------------------------------------- Comment (by Herbert Valerio Riedel <hvr@…>): In [changeset:"437ebdda48e7a32fe1bea49cb503f456a0152a36/ghc" 437ebdd/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="437ebdda48e7a32fe1bea49cb503f456a0152a36" Start using `-W` instead of `-f(no-)warn` in some places This replaces some occurences of `-f(no-)warn` with the new `-W`-aliases introduced via 2206fa8cdb120932 / #11218, in cases which are guaranteed to be invoked with recent enough GHC (i.e. the stage1+ GHC). After this commit, mostly the compiler and the testsuite remain using `-f(wo-)warn...` because the compiler needs to be bootstrappable with older GHCs, while for the testsuite it's convenient to be able to quickly compare the behavior to older GHCs (which may not support the new flags yet). The compiler-part can be updated to use the new flags once GHC 8.3 development starts. Reviewed By: quchen Differential Revision: https://phabricator.haskell.org/D1637 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11218#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC