<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thanks, all.<br><br>Just tried<br><br>type Bindings = Map.Map String Int<br><br>and it also seems to work.<br><br>Michael<br><br>&nbsp;--- On <b>Thu, 12/30/10, Pedro Vasconcelos <i>&lt;pbv@dcc.fc.up.pt&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Pedro Vasconcelos &lt;pbv@dcc.fc.up.pt&gt;<br>Subject: Re: [Haskell-cafe] Not in scope: type constructor or class `Map'<br>To: haskell-cafe@haskell.org<br>Date: Thursday, December 30, 2010, 11:17 AM<br><br><div class="plainMail">On Thu, 30 Dec 2010 08:01:01 -0800 (PST)<br>michael rice &lt;<a ymailto="mailto:nowgate@yahoo.com" href="/mc/compose?to=nowgate@yahoo.com">nowgate@yahoo.com</a>&gt; wrote:<br><br>&gt; Not sure what's going on here. Doesn't like line 5, the type<br>&gt; statement. And what's with the semicolons in that line and
 in<br>&gt; function main?<br><br>&gt; <br>&gt; import Control.Monad.Reader<br>&gt; import qualified Data.Map as Map<br>&gt; import Data.Maybe<br>&gt; <br>&gt; type Bindings = Map String Int;<br>.<br>The right hand side should be "Map.Map String Int"; alternatively<br>add an unqualified import above for just the Map type:<br><br>&gt; import Data.Map(Map)<br><br>The semicolon is optional---the layout rule will insert it if you leave<br>it out.<br><br><br>Pedro<br><br>_______________________________________________<br>Haskell-Cafe mailing list<br><a ymailto="mailto:Haskell-Cafe@haskell.org" href="/mc/compose?to=Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br><a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br></div></blockquote></td></tr></table><br>