RE: Re[2]: [Haskell-cafe] ghc 6.4 import problem

2005-06-02 Thread Simon Marlow
On 01 June 2005 07:24, Bulat Ziganshin wrote: Hello Fergus, Tuesday, May 31, 2005, 10:24:41 PM, you wrote: import Data.Set hiding (map) import qualified Data.Set as Set will do fine. That code only compiles with ghc 6.4, and won't compile with ghc 6.2: you'll get an error for the

Re[4]: [Haskell-cafe] ghc 6.4 import problem

2005-06-02 Thread Bulat Ziganshin
Hello Simon, Thursday, June 02, 2005, 12:26:48 PM, you wrote: SM You mean allowing SM import M hiding (x) SM even if x is not exported by M? Or making it a warning? yes. i think that warning will be enough - it will compile silently with new library versions and give warning, but still

Re: [Haskell-cafe] ghc 6.4 import problem

2005-05-31 Thread Daniel Fischer
Am Dienstag, 31. Mai 2005 14:05 schrieben Sie: On Tue, 31 May 2005, Daniel Fischer wrote: (snip) The module Set has undergone major changes - look at the code and admire, if you have it. Formerly sets were implemented as 'FiniteMap's, now as size-balanced trees. Formerly there was a

Re: [Haskell-cafe] ghc 6.4 import problem (Map vs. FiniteMap)

2005-05-31 Thread Christian Maeder
Daniel Fischer wrote: Indeed, I have looked at the sources and found out that now the implementations of 'Set' and 'Map' are basically the same. The major achievement of (the new) Data.Set and Data.Map are canonical names that should be used in conjunction with qualified imports: import

Re: [Haskell-cafe] ghc 6.4 import problem

2005-05-31 Thread Fergus Henderson
On 31-May-2005, Daniel Fischer [EMAIL PROTECTED] wrote: Am Freitag, 27. Mai 2005 02:06 schrieb Shiqi Cao: I tried to port some code from ghc 6.2 to ghc 6.4, but I got the following error PrelExts.lhs:41:25: Ambiguous occurrence `map' It could refer to either `GHC.Base.map',