[Haskell-cafe] Unary Minus

Martijn van Steenbergen martijn at van.steenbergen.nl
Mon Apr 6 04:36:23 EDT 2009

Paul Keir wrote:
> If I use :info (-) I get information on the binary minus. Is unary minus 
> also a function?

No, as far as I know the unary minus is part of the number literals. You 
can use "negate" if you want it as a function.

Hope this helps,


More information about the Haskell-Cafe mailing list