From cca08c2ca27881a94e875656fee882b9bf99d145 Mon Sep 17 00:00:00 2001 From: Krzysztof Gogolewski Date: Fri, 23 Jul 2021 18:21:55 +0200 Subject: Parser: suggest TemplateHaskell on $$(...) (#20157) --- compiler/GHC/Parser/Errors/Ppr.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler') diff --git a/compiler/GHC/Parser/Errors/Ppr.hs b/compiler/GHC/Parser/Errors/Ppr.hs index 2cc8b4a113..2a238190c9 100644 --- a/compiler/GHC/Parser/Errors/Ppr.hs +++ b/compiler/GHC/Parser/Errors/Ppr.hs @@ -601,6 +601,7 @@ instance Diagnostic PsMessage where PsErrParse token PsErrParseDetails{..} -> case token of "" -> [] "$" | not ped_th_enabled -> [suggestExtension LangExt.TemplateHaskell] -- #7396 + "$$" | not ped_th_enabled -> [suggestExtension LangExt.TemplateHaskell] -- #20157 "<-" | ped_mdo_in_last_100 -> [suggestExtension LangExt.RecursiveDo] | otherwise -> [SuggestMissingDo] "=" | ped_do_in_last_100 -> [SuggestLetInDo] -- #15849 -- cgit v1.2.1