[GHC] #15964: PartialTypeSignatures warnings should be turned off with -Wno-partial-type-signatures

#15964: PartialTypeSignatures warnings should be turned off with -Wno-partial-type- signatures -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 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: -------------------------------------+------------------------------------- {{{ Foo.hs:638:18: warning: [-Wpartial-type-signatures] }}} The warning when using `PartialTypeSignatures` suggests that the warning is enabled by `-Wpartial-type-signatures`. However, if you try and disable this warning using `-Wno-partial-type-signatures` then GHC complains that it is not a recognised flag. The correct way to turn it off is to use `-fno-warn-partial-signatures`. It seems that for consistency the first way that I tried should also work. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15964 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15964: PartialTypeSignatures warnings should be turned off with -Wno-partial-type- signatures -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 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: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): Replying to [ticket:15964 mpickering]:
However, if you try and disable this warning using `-Wno-partial-type- signatures` then GHC complains that it is not a recognised flag.
Huh? I must be missing something obvious here, because I have no difficulties using the `-Wno-partial-type-signatures` flag: {{{ $ ghci GHCi, version 8.6.2: http://www.haskell.org/ghc/ :? for help Loaded GHCi configuration from /home/ryanglscott/.ghci λ> :set -Wno-partial-type-signatures -XPartialTypeSignatures λ> f :: _ -> _; f x = x }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15964#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15964: PartialTypeSignatures warnings should be turned off with -Wno-partial-type- signatures -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 Resolution: invalid | 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: | -------------------------------------+------------------------------------- Changes (by mpickering): * status: new => closed * resolution: => invalid Comment: Seems that I was misspelling the flag then. I can't reproduce it either. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15964#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC