summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Eisenberg <rae@richarde.dev>2020-12-16 15:05:15 -0500
committerRichard Eisenberg <rae@richarde.dev>2020-12-16 15:05:15 -0500
commit4645ffb130eef6466a978f6168528ed9312f3a33 (patch)
treef57293d5ed2f13126823199deb69041d7661d5f0
parent54b88eacbf9d13f2b1d070932a742ec74419c3f5 (diff)
downloadhaskell-wip/cite-kind-inference.tar.gz
Cite "Kind Inference for Datatypes"wip/cite-kind-inference
-rw-r--r--compiler/GHC/Tc/Utils/TcMType.hs3
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