Kind inference of class variables does not examine associated types
If I say this
{-# LANGUAGE TypeFamilies, PolyKinds, DataKinds #-}
module Bug where
class C a where
type F (x :: Maybe a)
then GHCi says this
*Bug> :k C
C :: k -> Constraint
That's silly. C
should have kind Type -> Constraint
, because the usage of a
in the kind of the associated type constraints a
's kind.
Will fix.
Trac metadata
Trac field | Value |
---|---|
Version | 8.6.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |