Type synonym accepted with out-of-scope kind variable
When I say
{-# LANGUAGE PolyKinds #-}
import Data.Proxy
import GHC.Exts
type X = Proxy (Any :: k)
I get no error. If I then ask GHCi about X
(with -fprint-explicit-kinds
), I see this:
*Main> :i X
type X = Proxy AnyK (Any AnyK)
I think my original code should be rejected.
Trac metadata
Trac field | Value |
---|---|
Version | 7.8.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |