Good point!  

I didn't implement that special case (which I should have).

A better fix would be to say that "hiding" hides only the unqualified name.
The report is vague on this matter!  I'll try to get it clarified.

Meahwhile, you can always add "import qualified Prelude" yourself, as a
workaround.

Thanks

Simon


| The Haskell 1.4 Report (Section 5.3.1) states
| 
|   The Prelude module is always available as a qualified import: an
|   implicit `import qualified Prelude' is part of every module and names
|   prefixed by `Prelude.' can always be used to refer to entities in the
|   Prelude.
| 
| However, compiling the following program under GHC 2.02 (alpha-dec-osf2)
| 
|   module M (myfoldr) where
|   import Prelude hiding (foldr)
|   myfoldr = Prelude.foldr
| 
| produces the following error message
| 
|   % ghc bug.hs
|  
|   bug.hs:5: value not in scope: Prelude.foldr

Reply via email to