[Haskell-cafe] Problem with Data.Map

michael rice nowgate at yahoo.com
Mon Jun 8 12:58:12 EDT 2009


Gotcha. Thanks!

Also wondering why I need two imports for one module.

Michael

--- On Mon, 6/8/09, Jochem Berndsen <jochem at functor.nl> wrote:

From: Jochem Berndsen <jochem at functor.nl>
Subject: Re: [Haskell-cafe] Problem with Data.Map
To: "michael rice" <nowgate at yahoo.com>
Cc: haskell-cafe at haskell.org
Date: Monday, June 8, 2009, 12:52 PM

michael rice wrote:
> 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 at functor.nl
GPG: 0xE6FABFAB



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090608/83f63d89/attachment-0001.html


More information about the Haskell-Cafe mailing list