[GHC] #11390: GHC does not warn about redundant patterns

GHC ghc-devs at haskell.org
Sat Jan 9 17:13:42 UTC 2016


#11390: GHC does not warn about redundant patterns
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.1
      Resolution:                    |             Keywords:  warnings
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 Iceland_jack):

 I thought `case x of {}` indicated to the compiler that the clause is
 empty ([http://downloads.haskell.org/~ghc/master/users-
 guide/glasgow_exts.html#empty-case-alternatives Empty case alternative])

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


More information about the ghc-tickets mailing list