Re: [Haskell-cafe] Problem with Data.Map

Gotcha. Thanks!
Also wondering why I need two imports for one module.
Michael
--- On Mon, 6/8/09, Jochem Berndsen
I don't understand your response. I copied the imports from Hoogles Data.Map page. What should the imports be?
Michael
The imports are fine, but instead of 'fromList' you should use 'Map.fromList' or 'Data.Map.fromList'. Regards, -- Jochem Berndsen | jochem@functor.nl GPG: 0xE6FABFAB

michael rice wrote:
Gotcha. Thanks!
Also wondering why I need two imports for one module.
This is not strictly necessary, but the scoping also applies to the type 'Map' itself, thus leaving the import Data.Map (Map) (this brings only the name "Map" in scope from module Data.Map) out would force you to write Data.Map.Map everywhere instead of just 'Map'. Regards, -- Jochem Berndsen | jochem@functor.nl GPG: 0xE6FABFAB
participants (2)
-
Jochem Berndsen
-
michael rice