summaryrefslogtreecommitdiff
path: root/compiler/hsSyn
diff options
context:
space:
mode:
authorRichard Eisenberg <eir@cis.upenn.edu>2016-04-07 16:44:06 +0200
committerRichard Eisenberg <eir@cis.upenn.edu>2016-04-12 08:14:17 -0400
commitb1084fd700e6bbe9d0d787046a6aabdb193982c4 (patch)
tree2b0c3bdc0db8ce9c0de251be0dfd86c920522be2 /compiler/hsSyn
parentf4446c5b963af8f3cc1693e2feab91dbe43d5237 (diff)
downloadhaskell-b1084fd700e6bbe9d0d787046a6aabdb193982c4.tar.gz
Fix #11811.
Previously, I had forgotten to omit variables already in scope from the TypeInType CUSK check. Simple enough to fix. Test case: typecheck/should_compile/T11811
Diffstat (limited to 'compiler/hsSyn')
-rw-r--r--compiler/hsSyn/HsDecls.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/hsSyn/HsDecls.hs b/compiler/hsSyn/HsDecls.hs
index 25768713c4..82a78fe5cd 100644
--- a/compiler/hsSyn/HsDecls.hs
+++ b/compiler/hsSyn/HsDecls.hs
@@ -887,6 +887,8 @@ return type) default to *.
- Additionally, if -XTypeInType is on, then a data definition with a top-level
:: must explicitly bind all kind variables to the right of the ::.
See test dependent/should_compile/KindLevels, which requires this case.
+ (Naturally, any kind variable mentioned before the :: should not be bound
+ after it.)
-}
instance (OutputableBndr name) => Outputable (FamilyDecl name) where