From: andy@galois.com Date: Sat, 21 Jul 2007 00:06:21 +0000 (+0000) Subject: in hpc-tools, removing the use of %error, to allow happy 1.15 to be used. X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=92d9c522010a96acc86f2543163e3c36f1def3fc in hpc-tools, removing the use of %error, to allow happy 1.15 to be used. --- diff --git a/utils/hpc/HpcParser.y b/utils/hpc/HpcParser.y index a6a095b..3f74437 100644 --- a/utils/hpc/HpcParser.y +++ b/utils/hpc/HpcParser.y @@ -6,7 +6,6 @@ import HpcLexer %name parser %tokentype { Token } -%error { \ e -> error $ show (take 10 e) } %token MODULE { ID "module" } @@ -102,5 +101,5 @@ hpcParser filename = do let tokens = initLexer txt return $ parser tokens - +happyError e = error $ show (take 10 e) }