> > This is a known bug in the ghc parser.  The only fix at the moment is
> > to use happpy without the -a flag.
> 
> Ta much.  If my recollection is correct, though, last time I had a similar
> problem on our Suns, I tried it on an HP installation, it didn't have
> that problem.  (I had another one instead for variety.)  So is it
> related to yacc versionitis, hardware, or was I hallucinating?

Yes - it means the yacc parser stack has overflowed, a result of using
right-recursion instead of left-recursion in the grammar.  

Different yacc/bison versions have different default stack sizes,
hence you may find that one works where another fails.  With bison,
you should be able to recompile the parser with -DYYMAXDEPTH=200000 or
something even silier.

Cheers,
        Simon

-- 
Simon Marlow                                             [EMAIL PROTECTED]
Research Assistant                          http://www.dcs.gla.ac.uk/~simonm/
finger for PGP public key

Reply via email to