RE: [Haskell-cafe] Hiding functions

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 | > | >
participants (1)
-
Simon Peyton-Jones