[GHC] #8494: Warn if a pattern guard obviates all others

GHC ghc-devs at haskell.org
Fri Nov 1 08:46:11 UTC 2013


#8494: Warn if a pattern guard obviates all others
-------------------------------------------------+-------------------------
        Reporter:  JohnWiegley                   |            Owner:
            Type:  feature request               |           Status:  new
        Priority:  normal                        |        Milestone:
       Component:  Compiler                      |          Version:  7.6.3
      Resolution:                                |         Keywords:
Operating System:  Unknown/Multiple              |     Architecture:
 Type of failure:  Incorrect warning at          |  Unknown/Multiple
  compile-time                                   |       Difficulty:
       Test Case:                                |  Unknown
        Blocking:                                |       Blocked By:
                                                 |  Related Tickets:
-------------------------------------------------+-------------------------

Comment (by JohnWiegley):

 The ticket is only about the case of reduced constant expressions,
 although dead code in general would be interesting to know about.

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


More information about the ghc-tickets mailing list