|I'm still struggeling with syntactic issues.  Is the following expression
|allowed in Haskell?
|
|        2 * -3
|
|Hbc, ghc, and gofer all accept it, but as far as I can see from the grammar
|it should not be allowed.  What is the intention?
|
|        -- Lennart

Your reading of the grammar is correct; it's not allawed.  Minus is the
only prefix operator, and it has the same syntactic precedence as
infix minus.

--Joe

  • - again Lennart Augustsson
    • Joe Fasel

Reply via email to