summaryrefslogtreecommitdiff
path: root/compiler/GHC/Parser/Errors.hs
diff options
context:
space:
mode:
authorDaniel Rogozin <daniel.rogozin@serokell.io>2021-04-26 18:33:06 +0300
committerDaniel Rogozin <daniel.rogozin@serokell.io>2021-04-26 20:12:03 +0300
commit907ed69dbb359609d7bd61dc19a910abee664f92 (patch)
tree38df75c3521bf60347e8b10236615a4458281ed7 /compiler/GHC/Parser/Errors.hs
parent7bc7eea3897dcb8a87fdb0921f451b9bc77309f6 (diff)
downloadhaskell-wip/19736.tar.gz
fix #19736wip/19736
Diffstat (limited to 'compiler/GHC/Parser/Errors.hs')
-rw-r--r--compiler/GHC/Parser/Errors.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/GHC/Parser/Errors.hs b/compiler/GHC/Parser/Errors.hs
index 83812f7673..e48f04aae5 100644
--- a/compiler/GHC/Parser/Errors.hs
+++ b/compiler/GHC/Parser/Errors.hs
@@ -90,6 +90,9 @@ data PsErrorDesc
= PsErrLambdaCase
-- ^ LambdaCase syntax used without the extension enabled
+ | PsErrEmptyLambda
+ -- ^ A lambda requires at least one parameter
+
| PsErrNumUnderscores !NumUnderscoreReason
-- ^ Underscores in literals without the extension enabled