[GHC] #16289: GHC thinks pattern match is exhaustive

GHC ghc-devs at haskell.org
Sun Feb 10 22:01:02 UTC 2019


#16289: GHC thinks pattern match is exhaustive
-------------------------------------+-------------------------------------
        Reporter:  dnspies           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:
       Component:  Compiler          |              Version:  8.6.3
      Resolution:                    |             Keywords:
                                     |  PatternMatchWarnings
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 harpocrates):

 This looks suspiciously like https://ghc.haskell.org/trac/ghc/ticket/15713
 (that's about overloaded strings, but otherwise pretty much the same
 situation). There's something fishy about exhaustiveness checking on
 overloaded literals in general.

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


More information about the ghc-tickets mailing list