From 1c7bb03db5956e8c56260ba0bbc8271afe073a01 Mon Sep 17 00:00:00 2001 From: Richard Eisenberg Date: Fri, 31 May 2019 13:28:42 -0400 Subject: Comments only: document tcdDataCusk better. --- compiler/hsSyn/HsDecls.hs | 5 +++++ 1 file changed, 5 insertions(+) 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. -} -- cgit v1.2.1