summaryrefslogtreecommitdiff
path: root/compiler/GHC/Parser/Errors.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Parser/Errors.hs')
-rw-r--r--compiler/GHC/Parser/Errors.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/GHC/Parser/Errors.hs b/compiler/GHC/Parser/Errors.hs
index f0f4372c8a..83812f7673 100644
--- a/compiler/GHC/Parser/Errors.hs
+++ b/compiler/GHC/Parser/Errors.hs
@@ -153,6 +153,15 @@ data PsErrorDesc
| PsErrPrecedenceOutOfRange !Int
-- ^ Precedence out of range
+ | PsErrOverloadedRecordDotInvalid
+ -- ^ Invalid use of record dot syntax `.'
+
+ | PsErrOverloadedRecordUpdateNotEnabled
+ -- ^ `OverloadedRecordUpdate` is not enabled.
+
+ | PsErrOverloadedRecordUpdateNoQualifiedFields
+ -- ^ Can't use qualified fields when OverloadedRecordUpdate is enabled.
+
| PsErrInvalidDataCon !(HsType GhcPs)
-- ^ Cannot parse data constructor in a data/newtype declaration