[Haskell-cafe] Fractional/negative fixity?

Bertram Felgenhauer bertram.felgenhauer at googlemail.com
Wed Nov 8 07:39:06 EST 2006

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.


More information about the Haskell-Cafe mailing list