From f1f9a3032a5dfc6d6c3f2b5f54efdeacd6c79353 Mon Sep 17 00:00:00 2001 From: Sebastian Graf Date: Thu, 19 Sep 2024 18:01:10 +0200 Subject: [PATCH] Better panic message, indicating that it's not the user's fault (#186) --- lib/data/HappyTemplate.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/data/HappyTemplate.hs b/lib/data/HappyTemplate.hs index e9e31422..aa8e33a7 100644 --- a/lib/data/HappyTemplate.hs +++ b/lib/data/HappyTemplate.hs @@ -251,7 +251,7 @@ happyFail explist i tk action sts stk = -- Internal happy errors: notHappyAtAll :: a -notHappyAtAll = Prelude.error "Internal Happy error\n" +notHappyAtAll = Prelude.error "Internal Happy parser panic. This is not supposed to happen! Open a bug report at https://github.com/haskell/happy/issues\n" ----------------------------------------------------------------------------- -- Hack to get the typechecker to accept our action functions