See Section 4.4.2, after the table.  Does that answer the qestion?


Simon

| -----Original Message-----
| From: S. Alexander Jacobson [mailto:[EMAIL PROTECTED]] 
| Sent: 12 July 2001 15:03
| To: [EMAIL PROTECTED]
| Cc: [EMAIL PROTECTED]
| Subject: Re: Another question wrt hiding imports
| 
| 
| I asked this a while ago and never got an answer.  Asking 
| again in better context:
| 
| How do you control importing operator precedence?
| 
| Suppose that you have:
| f x = 2 + 2 * x
| 
| And an imported module increases the precedence of (+).
| You end up getting mangled.
| 
| My assumption is that the only way to protect yourself from 
| this is to import qualified so A.+ has a different precedence from +.
| 
| But I don't think the report promises this.  The report just 
| promises that A.+ has the same precedence as (+) inside module A.
| 
| -Alex-
| 
| ___________________________________________________________________
| S. Alexander Jacobson                   Shop.Com
| 1-646-638-2300 voice                    The Easiest Way To Shop (sm)
| 
| 
| _______________________________________________
| Haskell mailing list
| [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell
| 

_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to