[GHC] #10503: The impossible happened (no skolem info) - untouchable kind variable

#10503: The impossible happened (no skolem info) - untouchable kind variable -------------------------------------+------------------------------------- Reporter: | Owner: AlekseyKliger | Status: new Type: bug | Milestone: Priority: normal | Version: 7.10.1 Component: Compiler | Operating System: Unknown/Multiple Keywords: | Type of failure: Compile-time Architecture: | crash Unknown/Multiple | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- {{{#!hs {-# LANGUAGE RankNTypes, PolyKinds, DataKinds, TypeFamilies #-} module GHCBug where data Proxy p = Proxy data KProxy (a :: *) = KProxy h :: forall r . (Proxy ('KProxy :: KProxy k) ~ Proxy ('KProxy :: KProxy *) => r) -> r h = undefined }}} GHC reports {{{ GHCBug.hs:8:6: Couldn't match kind ‘k’ with ‘*’ ‘k’ is untouchable inside the constraints (Proxy 'KProxy ~ Proxy 'KProxy) bound by the type signature for h :: (Proxy 'KProxy ~ Proxy 'KProxy) => r at GHCBug.hs:8:6-87ghc: panic! (the 'impossible' happened) (GHC version 7.10.1 for x86_64-unknown-linux): No skolem info: k_amc[sk] }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10503 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10503: The impossible happened (no skolem info) - untouchable kind variable
-------------------------------------+-------------------------------------
Reporter: AlekseyKliger | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Compile-time | Unknown/Multiple
crash | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by Simon Peyton Jones

#10503: The impossible happened (no skolem info) - untouchable kind variable -------------------------------------+------------------------------------- Reporter: AlekseyKliger | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.10.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | polykinds/T10503 Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by simonpj): * status: new => closed * testcase: => polykinds/T10503 * resolution: => fixed Comment: Well this too is fixed in HEAD, but I'm not sure when. It's only a crash when displaying an error message, so I propose not to fix separately in 7.10. Yell if that's a problem. I'll add it as a regression test though, thank you. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10503#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC