summaryrefslogtreecommitdiff
path: root/compiler/GHC/Tc/Errors/Ppr.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Tc/Errors/Ppr.hs')
-rw-r--r--compiler/GHC/Tc/Errors/Ppr.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/GHC/Tc/Errors/Ppr.hs b/compiler/GHC/Tc/Errors/Ppr.hs
index a1773a12ed..29d36eda3c 100644
--- a/compiler/GHC/Tc/Errors/Ppr.hs
+++ b/compiler/GHC/Tc/Errors/Ppr.hs
@@ -71,6 +71,8 @@ instance Diagnostic TcRnMessage where
-> mkSimpleDecorated $
hang (text "Illegal pattern synonym declaration for" <+> quotes (ppr rdrname))
2 (text "Pattern synonym declarations are only valid at top level")
+ TcRnEmptyRecordUpdate
+ -> mkSimpleDecorated $ text "Empty record update"
diagnosticReason = \case
TcRnUnknownMessage m
@@ -102,6 +104,8 @@ instance Diagnostic TcRnMessage where
-> ErrorWithoutFlag
TcRnIllegalPatSynDecl{}
-> ErrorWithoutFlag
+ TcRnEmptyRecordUpdate
+ -> ErrorWithoutFlag
diagnosticHints = \case
TcRnUnknownMessage m
@@ -133,6 +137,8 @@ instance Diagnostic TcRnMessage where
-> [SuggestIncreaseSimplifierIterations]
TcRnIllegalPatSynDecl{}
-> noHints
+ TcRnEmptyRecordUpdate{}
+ -> noHints
messageWithInfoDiagnosticMessage :: UnitState
-> ErrInfo