<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I don't understand your response. I copied the imports from Hoogles Data.Map page. What should the imports be?<br><br>Michael<br><br>--- On <b>Mon, 6/8/09, Jochem Berndsen <i>&lt;jochem@functor.nl&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Jochem Berndsen &lt;jochem@functor.nl&gt;<br>Subject: Re: [Haskell-cafe] Problem with Data.Map<br>To: "michael rice" &lt;nowgate@yahoo.com&gt;<br>Cc: haskell-cafe@haskell.org<br>Date: Monday, June 8, 2009, 12:45 PM<br><br><div class="plainMail">michael rice wrote:<br>&gt; I'm trying to understand Map type for possible use in another problem I'm working on, but am stymied right off the bat.<br>&gt; <br>&gt; ==========Here's my source:<br>&gt; <br>&gt; import Data.Map (Map)<br>&gt; import qualified Data.Map as Map<br>&gt; <br>&gt; *Main&gt;
 fromList $ zip l1 l2<br>&gt; <br>&gt; &lt;interactive&gt;:1:0: Not in scope: `fromList'<br><br>You imported map "qualified as Map", that means that only 'Map.fromList'<br>and 'Data.Map.fromList' are in scope, and not 'fromList'. The reason one<br>normally does it like this is that a lot of function names clash with<br>the Prelude (on purpose). Normally one uses "qualified as M" or<br>"qualified as Map" to shorten the notation.<br><br>HTH,<br><br>-- <br>Jochem Berndsen | <a ymailto="mailto:jochem@functor.nl" href="/mc/compose?to=jochem@functor.nl">jochem@functor.nl</a><br>GPG: 0xE6FABFAB<br></div></blockquote></td></tr></table><br>