[prev in list] [next in list] [prev in thread] [next in thread]
List: haskell-cafe
Subject: RE: [Haskell-cafe] Hiding functions
From: "Simon Peyton-Jones" <simonpj () microsoft ! com>
Date: 2004-08-16 8:25:31
Message-ID: 4B93206CA3C55D4F96A61C9B1DC80DE301787559 () EUR-MSG-03 ! europe ! corp ! microsoft ! com
[Download RAW message or body]
Yes that's true. See http://haskell.org/onlinereport/modules.html
Section 5.5
S
| -----Original Message-----
| From: Lyle Kopnicky [mailto:lists@qseep.net]
| Sent: 13 August 2004 23:37
| To: Simon Peyton-Jones
| Cc: Haskell Cafe
| Subject: Re: [Haskell-cafe] Hiding functions
|
| Simon,
|
| It also appears that if I don't call 'catch' from my module, I can
| import both and not have a conflict.
|
| - Lyle
|
| Simon Peyton-Jones wrote:
|
| >It's an explicit Haskell 98 design choice
| > http://haskell.org/onlinereport/modules.html
| >
| >"5.6.2 Shadowing Prelude Names
| >
| >The rules about the Prelude have been cast so that it is possible to
use
| >Prelude names for nonstandard purposes; however, every module that
does
| >so must have an import declaration that makes this nonstandard usage
| >explicit."
| >
| >It's a decision one could debate, but it was an explicit choice.
| >
| >Simon
| >
| >
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic