diff options
author | Richard Eisenberg <rae@richarde.dev> | 2020-12-16 15:05:15 -0500 |
---|---|---|
committer | Richard Eisenberg <rae@richarde.dev> | 2020-12-16 15:05:15 -0500 |
commit | 4645ffb130eef6466a978f6168528ed9312f3a33 (patch) | |
tree | f57293d5ed2f13126823199deb69041d7661d5f0 | |
parent | 54b88eacbf9d13f2b1d070932a742ec74419c3f5 (diff) | |
download | haskell-wip/cite-kind-inference.tar.gz |
Cite "Kind Inference for Datatypes"wip/cite-kind-inference
-rw-r--r-- | compiler/GHC/Tc/Utils/TcMType.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/GHC/Tc/Utils/TcMType.hs b/compiler/GHC/Tc/Utils/TcMType.hs index ccb9152e01..4d2bebe189 100644 --- a/compiler/GHC/Tc/Utils/TcMType.hs +++ b/compiler/GHC/Tc/Utils/TcMType.hs @@ -1230,6 +1230,9 @@ We do this eager erroring in candidateQTyVars, which always precedes generalisation, because at that moment we have a clear picture of what skolems are in scope within the type itself (e.g. that 'forall arg'). +This change is inspired by and described in Section 7.2 of "Kind Inference +for Datatypes", POPL'20. + Wrinkle: We must make absolutely sure that alpha indeed is not |