[Haskell-cafe] Re: Unary Minus

Roel van Dijk vandijk.roel at gmail.com
Mon Apr 6 06:13:09 EDT 2009


On Mon, Apr 6, 2009 at 12:04 PM, Benjamin L.Russell
<DekuDekuplex at yahoo.com> wrote:
> Interesting.  How is this hack implemented?

This seems to be the relevant grammar:
  lexp6 -> - exp7
  lpat6 -> - (integer | float)        (negative literal)

The '6's and the '7' are superscripts.
Perhaps the hack is in the precedence of the expression in which an
unary minus is allowed.


More information about the Haskell-Cafe mailing list