
8 Nov
2006
8 Nov
'06
12:39 p.m.
Simon Marlow wrote:
http://hackage.haskell.org/cgi-bin/haskell-prime/trac.cgi/wiki/FixityResolut...
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