From e375dd5d6dbe4a901b4914ce4ce33d184de2d9df 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..2d20f21f 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! Please open a bug report at https://github.com/haskell/happy/issues.\n" ----------------------------------------------------------------------------- -- Hack to get the typechecker to accept our action functions