[GHC] #10935: More unused and non-deprecated warning flags

#10935: More unused and non-deprecated warning flags -------------------------------------+------------------------------------- Reporter: osa1 | Owner: Type: task | Status: new Priority: lowest | Milestone: Component: Compiler | Version: 7.10.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: #10752 Differential Rev(s): | -------------------------------------+------------------------------------- For #10752 I was looking at some warning generation code, and I realized that these flags are not doing anything right now, but they're not deprecated: - -fwarn-tabs - -fwarn-monomorphism-restriction - -fwarn-unrecognised-pragmas This one is not even shown in user manual or man page: - Opt_WarnAlternativeLayoutRileTransitional We should probably deprecate and remove them. Another thing is that we should probably remove -fwarn-amp in HEAD. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10935 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10935: More unused and non-deprecated warning flags -------------------------------------+------------------------------------- Reporter: osa1 | Owner: Type: task | Status: new Priority: lowest | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #10752 | Differential Rev(s): -------------------------------------+------------------------------------- Comment (by osa1): EDIT: It seems like I forgot to search in the lexer. Current status: - -fwarn-monomorphism-restriction is unused. - -fwarn-alternative-layout-rule-transitional is used in the lexer but not documented anywhere. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10935#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10935: More unused and non-deprecated warning flags -------------------------------------+------------------------------------- Reporter: osa1 | Owner: Type: task | Status: new Priority: lowest | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #10752, #8176 | Differential Rev(s): -------------------------------------+------------------------------------- Changes (by thomie): * related: #10752 => #10752, #8176 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10935#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10935: More unused and non-deprecated warning flags -------------------------------------+------------------------------------- Reporter: osa1 | Owner: bernalex Type: task | Status: new Priority: lowest | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #10752, #8176 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bernalex): * owner: => bernalex -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10935#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10935: More unused and non-deprecated warning flags -------------------------------------+------------------------------------- Reporter: osa1 | Owner: bernalex Type: task | Status: new Priority: lowest | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #10752, #8176 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by rwbarton): The only real issue here is: * Either reimplement or remove (it even has documentation!) `-fwarn- monomorphism-restriction` (it went away in d2ce0f52d "Super-monster patch implementing the new typechecker -- at last" from 2010) `-fwarn-alternative-layout-rule-transitional` is apparently intentionally not documented (49fc268e2). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10935#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10935: More unused and non-deprecated warning flags -------------------------------------+------------------------------------- Reporter: osa1 | Owner: bernalex Type: task | Status: new Priority: lowest | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #10752, #8176 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bernalex): I'll look into reimplementing the monomorphism restriction flag. I don't find «I think the alternative layout rule flags are deliberately not documented at the moment» a very convincing argument. Maybe Ian can clarify? I don't know his trac account. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10935#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10935: More unused and non-deprecated warning flags
-------------------------------------+-------------------------------------
Reporter: osa1 | Owner: bernalex
Type: task | Status: new
Priority: lowest | Milestone:
Component: Compiler | Version: 7.10.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: #10752, #8176 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Simon Peyton Jones

#10935: More unused and non-deprecated warning flags -------------------------------------+------------------------------------- Reporter: osa1 | Owner: bernalex Type: task | Status: new Priority: lowest | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #10752, #8176 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * cc: igloo (added) Comment: I took a spare moment to deal with `-fwarn-monomorphism-restriction`. I don't know about alternative layout, so leaving this open. But cc'ing Ian (igloo). Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10935#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10935: More unused and non-deprecated warning flags -------------------------------------+------------------------------------- Reporter: osa1 | Owner: bernalex Type: task | Status: new Priority: lowest | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | typecheck/should_compile/T10935 Blocked By: | Blocking: Related Tickets: #10752, #8176 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * testcase: => typecheck/should_compile/T10935 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10935#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10935: More unused and non-deprecated warning flags
-------------------------------------+-------------------------------------
Reporter: osa1 | Owner: bernalex
Type: task | Status: new
Priority: lowest | Milestone:
Component: Compiler | Version: 7.10.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
| typecheck/should_compile/T10935
Blocked By: | Blocking:
Related Tickets: #10752, #8176 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Austin Seipp

#10935: More unused and non-deprecated warning flags -------------------------------------+------------------------------------- Reporter: osa1 | Owner: Type: task | Status: new Priority: lowest | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | typecheck/should_compile/T10935 Blocked By: | Blocking: Related Tickets: #10752, #8176 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bernalex): * owner: bernalex => -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10935#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10935: More unused and non-deprecated warning flags -------------------------------------+------------------------------------- Reporter: osa1 | Owner: Type: task | Status: new Priority: lowest | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | typecheck/should_compile/T10935 Blocked By: | Blocking: Related Tickets: #10752, #8176 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by asr): * cc: asr (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10935#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10935: More unused and non-deprecated warning flags -------------------------------------+------------------------------------- Reporter: osa1 | Owner: Type: task | Status: closed Priority: lowest | Milestone: 8.0.1 Component: Compiler | Version: 7.10.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | typecheck/should_compile/T10935 Blocked By: | Blocking: Related Tickets: #10752, #8176 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => fixed * milestone: => 8.0.1 Comment: If I'm not mistaken this is resolved, * `-fwarn-tabs` is gone * `-fwarn-monomorphism-restriction` has been resuscitated * `-fwarn-unrecognised-pragmas` no longer exists * `-XAlternativeLayoutRule` and friends is handled in #11359 * `-fwarn-amp` will be handled in due time (created #11477 to track this) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10935#comment:12 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC