[GHC] #14954: Passing -fno-code disables reporting of some warnings

GHC ghc-devs at haskell.org
Wed Mar 21 22:53:07 UTC 2018


#14954: Passing -fno-code disables reporting of some warnings
-------------------------------------+-------------------------------------
        Reporter:  mrkkrp            |                Owner:  (none)
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.2
      Resolution:  duplicate         |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #10600            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by RyanGlScott):

 * status:  new => closed
 * resolution:   => duplicate
 * related:   => #10600


Comment:

 Indeed, this is a duplicate of #10600, as this emits the warning with GHC
 8.4.1:

 {{{
 $ /opt/ghc/8.4.1/bin/ghci -Wall -fno-code Bug.hsGHCi, version 8.4.1:
 http://www.haskell.org/ghc/  :? for help
 Loaded GHCi configuration from /home/rgscott/.ghci
 [1 of 1] Compiling Main             ( Bug.hs, nothing )

 Bug.hs:3:1: warning: [-Wmissing-signatures]
     Top-level binding with no type signature: main :: IO ()
   |
 3 | main =
   | ^^^^

 Bug.hs:4:3: warning: [-Wincomplete-patterns]
     Pattern match(es) are non-exhaustive
     In a case alternative:
         Patterns not matched: p where p is not one of {1}
   |
 4 |   case (1+1) :: Int of
   |   ^^^^^^^^^^^^^^^^^^^^...
 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14954#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list