[GHC] #8101: No pattern match non-exhaustiveness warnings when compiling with -fno-code

GHC ghc-devs at haskell.org
Sun Jul 28 19:17:36 CEST 2013


#8101: No pattern match non-exhaustiveness warnings when compiling with -fno-code
-------------------------------------------------+-------------------------
        Reporter:  exbb2                         |            Owner:
            Type:  bug                           |           Status:
        Priority:  normal                        |  closed
       Component:  Compiler                      |        Milestone:  7.8.1
      Resolution:  fixed                         |          Version:  7.6.3
Operating System:  Unknown/Multiple              |         Keywords:
 Type of failure:  Incorrect warning at          |     Architecture:
  compile-time                                   |  Unknown/Multiple
       Test Case:  T8101                         |       Difficulty:
        Blocking:                                |  Unknown
                                                 |       Blocked By:
                                                 |  Related Tickets:
-------------------------------------------------+-------------------------

Comment (by monoidal):

 There's a comment in DynFlags, line 882, which might suggest this was
 deliberate. At least I would remove it:

 {{{
 -- 'HscNothing' can be used to avoid generating any output, however, note
 -- that:
 --
 --  * This will not run the desugaring step, thus no warnings generated in
 --    this step will be output.  In particular, this includes warnings
 related
 --    to pattern matching.  You can run the desugarer manually using
 --    'GHC.desugarModule'.
 }}}

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




More information about the ghc-tickets mailing list