[GHC] #14086: Empty case does not detect kinds

GHC ghc-devs at haskell.org
Thu Aug 3 18:51:52 UTC 2017


#14086: Empty case does not detect kinds
-------------------------------------+-------------------------------------
        Reporter:  dfeuer            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  low               |            Milestone:  8.4.1
       Component:  Compiler (Type    |              Version:  8.2.1
  checker)                           |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  error/warning at compile-time      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by RyanGlScott):

 * cc: RyanGlScott (added)


Comment:

 I'm somewhat surprised this doesn't work, given that `Type` expands to
 `TYPE LiftedRep`, and `TYPE` is itself a datatype with no constructors.
 Granted, it is a somewhat magical datatype, but perhaps that just means we
 need to adjust the magicks appropriately for the `EmptyCase` pattern-match
 exhaustivity checker's purposes.

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


More information about the ghc-tickets mailing list