On Fri, 17 Apr 1998, Mark P Jones wrote:
> | Observed behaviour:
> | It fails on line 1021:
> | Reading script file "/home/patrikj/hugs1.3b/lib/Prelude.hs":
> | Parsing
> | ERROR "/home/patrikj/hugs1.3b/lib/Prelude.hs" (line 1021): Syntax error in case
>expression (unexpected `)')
...
> My advice in this situation would be:
>
> - If you can, use the parser.c included in the distribution.
Actually I didn't know I didn't use it! Now I downloaded it again and
found the reason for recompilation:
[patrikj@croak src]$ ls -lrt pa*
-rw------- 1 patrikj patrikj 64576 Jan 21 17:22 parser.c
-rw------- 1 patrikj patrikj 38570 Jan 22 11:06 parser.y
The .c file is not "fresh" enough and so gets overwritten by the Makefile.
After touch parser.c it all worked fine.
Thanks for the prompt reply.
(Now that I knew where to look I also tried changing the Makefile to use
"GNU Bison version 1.25" and this also worked fine.)
Patrik Jansson
PS. Just so that you know - the non-working yacc identifies itself as
static char yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93";