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
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
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
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
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',