summaryrefslogtreecommitdiff
path: root/compiler/GHC/Tc/Errors/Types.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Tc/Errors/Types.hs')
-rw-r--r--compiler/GHC/Tc/Errors/Types.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/compiler/GHC/Tc/Errors/Types.hs b/compiler/GHC/Tc/Errors/Types.hs
index 4f0d961a3d..41fa0515ee 100644
--- a/compiler/GHC/Tc/Errors/Types.hs
+++ b/compiler/GHC/Tc/Errors/Types.hs
@@ -4168,6 +4168,18 @@ data TcRnMessage where
-> Maybe [GlobalRdrElt] -- ^ lookup result
-> TcRnMessage
+ {- TcRnMissingRoleAnnotation is a warning that occurs when type declaration
+ doesn't have a role annotatiosn
+
+ Controlled by flags:
+ - Wmissing-role-annotations
+
+ Test cases:
+ T22702
+
+ -}
+ TcRnMissingRoleAnnotation :: Name -> [Role] -> TcRnMessage
+
deriving Generic
-- | Things forbidden in @type data@ declarations.