Skip to content

Rework GHC's treatment of constraints in kinds

GHC 8.6 accepts

data Q :: Eq a => Type

It shouldn't, as we can't have Eq a as a constraint in kinds. Note that writing a constructor for Q is rejected.

Trac metadata
Trac field Value
Version 8.6.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Edited by Ryan Scott
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information