[Git][ghc/ghc][master] Comments only: document tcdDataCusk better.

Marge Bot gitlab at gitlab.haskell.org
Sun Jun 9 22:47:27 UTC 2019



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
1c7bb03d by Richard Eisenberg at 2019-06-09T22:47:24Z
Comments only: document tcdDataCusk better.

- - - - -


1 changed file:

- compiler/hsSyn/HsDecls.hs


Changes:

=====================================
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.
 -}
 
 



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/1c7bb03db5956e8c56260ba0bbc8271afe073a01

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/1c7bb03db5956e8c56260ba0bbc8271afe073a01
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20190609/637578e1/attachment.html>


More information about the ghc-commits mailing list