How to use Data.Set.Set

Christian Maeder maeder at
Wed Oct 12 06:15:48 EDT 2005

Ketil Malde wrote:
> Indeed.  While I generally like the overloaded, qualified names, I
> find it annoying when, like 'map', they clash with Prelude imports.
> Which means that, in a module using Data.Set, I must either use it all
> qualified, or import it twice (qualified and hiding map), or
> explicitly import Prelude hiding map.  (Better solutions wanted!)

I think, you should

  import qualified Data.Set as Set

only and use "" rather than the deprecated "mapSet"

(most other names from Data.Set make more sense with the "Set." prefix)


More information about the Glasgow-haskell-users mailing list