diff options
| author | sheaf <sam.derbyshire@gmail.com> | 2022-01-10 12:30:27 +0100 |
|---|---|---|
| committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-01-11 19:41:28 -0500 |
| commit | addf8e544841a3f7c818331e47fa89a2cbfb7b29 (patch) | |
| tree | 39c9975cbefcdaba64d09bf236f100948ed5f129 /compiler/Language | |
| parent | c6300cb319f5d756e4addf8193b8115949e645ac (diff) | |
| download | haskell-addf8e544841a3f7c818331e47fa89a2cbfb7b29.tar.gz | |
Kind TyCons: require KindSignatures, not DataKinds
Uses of a TyCon in a kind signature required users to enable
DataKinds, which didn't make much sense, e.g. in
type U = Type
type MyMaybe (a :: U) = MyNothing | MyJust a
Now the DataKinds error is restricted to data constructors;
the use of kind-level type constructors is instead gated behind
-XKindSignatures.
This patch also adds a convenience pattern synonym for patching
on both a TyCon or a TcTyCon stored in a TcTyThing, used in
tcTyVar and tc_infer_id.
fixes #20873
Diffstat (limited to 'compiler/Language')
0 files changed, 0 insertions, 0 deletions
