summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Eisenberg <rae@richarde.dev>2019-05-31 13:28:42 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-06-09 18:47:24 -0400
commit1c7bb03db5956e8c56260ba0bbc8271afe073a01 (patch)
tree6ea8951012876939ab9b92a28a06a60f552eafdb
parent69c58f8abbb0b51eca1f0004a8d8c1cee0c8f766 (diff)
downloadhaskell-1c7bb03db5956e8c56260ba0bbc8271afe073a01.tar.gz
Comments only: document tcdDataCusk better.
-rw-r--r--compiler/hsSyn/HsDecls.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/hsSyn/HsDecls.hs b/compiler/hsSyn/HsDecls.hs
index 388c770720..624d9bc6c3 100644
--- a/compiler/hsSyn/HsDecls.hs
+++ b/compiler/hsSyn/HsDecls.hs
@@ -550,6 +550,7 @@ type LHsFunDep pass = Located (FunDep (Located (IdP pass)))
data DataDeclRn = DataDeclRn
{ tcdDataCusk :: Bool -- ^ does this have a CUSK?
+ -- See Note [CUSKs: complete user-supplied kind signatures]
, tcdFVs :: NameSet }
deriving Data
@@ -864,6 +865,10 @@ NOTE THAT
This last point is much more debatable than the others; see
#15142 comment:22
+
+ Because this is fiddly to check, there is a field in the DataDeclRn
+ structure (included in a DataDecl after the renamer) that stores whether
+ or not the declaration has a CUSK.
-}