Consider the following arithmetic expressions:

  3 + -4

  3 * -4

Both expressions should be syntactically wrong due to the
syntax described in the Haskell98 report (which is reasonable).
What surprises me is the fact that both expressions are
accepted by ghc and hugs (even in the Haskell98 mode).

Is this a bug/feature of these systems or is there something
wrong with the grammar in the report?

Michael

---
Michael Hanus

Informatik II       eMail: [EMAIL PROTECTED], [EMAIL PROTECTED]
RWTH Aachen         Phone: +49-241/80-21230
D-52056 Aachen      Fax:   +49-241/8888-217
Germany             WWW:   http://www-i2.informatik.rwth-aachen.de/~hanus/


Reply via email to