Simon Marlow wrote:
> [...] Ok, could you give an example? I tried to fix most of the
> wrong-line-number-in-error-message type problems, but I may have
> missed some.
Here's one:
-- comment1
-- comment2
%lame example
Happy tells me: Foo.y:1: unrecognised directive: %lame
{- -} style comments seem to work, though.
Another minor point: Sometimes (right hand sides consisting entirely of
terminals?) Happy (without -g or -a) generates some superfluous
catch-all equations for the internal "reduction" functions (something
like "reduction _ _ = notHappyAtAll"). GHC correctly deduces that they
are completely overlapped by previous equations and issues a warning
(or two, or three...). While this doesn't really hurt, it makes the
"real" warnings much harder to find.
--
Sven Panne Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen Oettingenstr. 67
mailto:[EMAIL PROTECTED] D-80538 Muenchen
http://www.pms.informatik.uni-muenchen.de/mitarbeiter/panne