summaryrefslogtreecommitdiff
path: root/compiler/GHC/Parser/Errors
diff options
context:
space:
mode:
authorDaniel Rogozin <daniel.rogozin@serokell.io>2021-04-26 18:33:06 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-04-27 21:58:32 -0400
commit9ead1b35e193b07e82af289cc85ab4b26cf89df6 (patch)
tree44c48619a52d6250291752495df455dcdcaa5d7a /compiler/GHC/Parser/Errors
parent484a8b2dcc84d012621bdc24da8cb68ae07b159b (diff)
downloadhaskell-9ead1b35e193b07e82af289cc85ab4b26cf89df6.tar.gz
fix #19736
Diffstat (limited to 'compiler/GHC/Parser/Errors')
-rw-r--r--compiler/GHC/Parser/Errors/Ppr.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/GHC/Parser/Errors/Ppr.hs b/compiler/GHC/Parser/Errors/Ppr.hs
index 7b9f2e64a0..0e83949a2e 100644
--- a/compiler/GHC/Parser/Errors/Ppr.hs
+++ b/compiler/GHC/Parser/Errors/Ppr.hs
@@ -141,6 +141,9 @@ pp_err = \case
PsErrLambdaCase
-> text "Illegal lambda-case (use LambdaCase)"
+ PsErrEmptyLambda
+ -> text "A lambda requires at least one parameter"
+
PsErrNumUnderscores reason
-> text $ case reason of
NumUnderscore_Integral -> "Use NumericUnderscores to allow underscores in integer literals"