[Haskell-cafe] Hiding functions

Simon Peyton-Jones simonpj at microsoft.com
Mon Aug 16 04:25:31 EDT 2004


Yes that's true.  See http://haskell.org/onlinereport/modules.html
Section 5.5

S

| -----Original Message-----
| From: Lyle Kopnicky [mailto:lists at 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
| >
| >


More information about the Haskell-Cafe mailing list