[GHC] #8710: Overlapping patterns warning misplaced

GHC ghc-devs at haskell.org
Wed Feb 24 15:55:42 UTC 2016


#8710: Overlapping patterns warning misplaced
-------------------------------------+-------------------------------------
        Reporter:  goldfire          |                Owner:
            Type:  bug               |               Status:  new
        Priority:  low               |            Milestone:
       Component:  Compiler          |              Version:  7.7
      Resolution:                    |             Keywords:
                                     |  PatternMatchWarnings
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  warning at compile-time            |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D1910,
       Wiki Page:                    |  Phab:D1920
-------------------------------------+-------------------------------------

Comment (by gkaracha):

 Replying to [comment:17 thomie]:
 > I flipped a coin, and it also said 1920.

 I am rather indifferent too about it. I agree with Ben that the shorter
 warning seems more user friendly, yet I think Simon is right that it is
 incredibly rare to have more than one redundant clause in a match (I can
 only imagine it happening as a copy-paste error) so I don't think it
 really makes a big difference.

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


More information about the ghc-tickets mailing list