Simon Marlow wrote:
> http://hackage.haskell.org/cgi-bin/haskell-prime/trac.cgi/wiki/FixityResolution

What's the fate of unary minus under that proposal?
In the Haskell report its syntax is part of the lexp^6 production.

This production makes it possible to write (-1+) instead of (subtract 1),
although that's not really advisable because Hugs fails to parse (-1+).
Interestingly, hugs allows (+ -1) instead, but I believe that's wrong.

Bertram
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to