Another question wrt hiding imports

Simon Peyton-Jones simonpj@microsoft.com
Thu, 12 Jul 2001 07:14:13 -0700


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


Simon

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