You may be right, but the Report is neither confusing nor inconsistent
on this point, I think. So I don't think it falls into the class of
things
that we can change for H98.
You'll just have to add parens!
Simon
| -----Original Message-----
| From: Ch. A. Herrmann [mailto:[EMAIL PROTECTED]]
| Sent: 23 July 2001 15:04
| To: [EMAIL PROTECTED]
| Subject: The Haskell Report
|
|
| Hi Haskellers,
|
| because I recognized that some people are discussing
| the Haskell report, I'd like to point out a problem
| concerning the operator precedences.
|
| At precedence level 9, there are the left associative
| operator (!!) and the right associative operator (.),
| but combining both directions doesn't make sense neither for me ..
|
| .. nor for ghci:
| > gs !! i . f
| > cannot mix `(!!)' [infixl 9] and `(.)' [infixr 9] in the
| same infix expression
|
| It appears sensible for me that (!!) associates to the
| left and I suppose that there is a strong requirement
| for (.), which is associative anyway (f.g).h = f.(g.h),
| to associate to the right, due to efficiency reasons.
| However, what's the problem with introducing a precedence
| level 10 and move (!!) upto it?
|
| Cheers
| Christoph
|
| _______________________________________________
| Haskell mailing list
| [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell
|
_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell