[GHC] #13343: Levity polymorphism-related GHC panic: expectJust zonkTcTyVarToVar

GHC ghc-devs at haskell.org
Sun Feb 26 16:42:04 UTC 2017


#13343: Levity polymorphism-related GHC panic: expectJust zonkTcTyVarToVar
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:  8.0.1
  checker)                           |             Keywords:
      Resolution:                    |  LevityPolymorphism
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash or panic                     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by goldfire):

 I don't have more time to look into precisely why this is getting through
 the cracks, but that type should be rejected by `TcValidity.check_type`.
 Look for the call to `forAllEscapeErr`.

 In short, that type is malformed because it's kind must mention `v`, which
 is out-of-scope.

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


More information about the ghc-tickets mailing list