<div dir="ltr"><div>Yes, you are right thank you. I don&#39;t know how could I miss it...<br><br></div>emmanuel<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Mar 17, 2013 at 4:25 PM, David McBride <span dir="ltr">&lt;<a href="mailto:toad3k@gmail.com" target="_blank">toad3k@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you hover over &quot;type Object = HashMap Text Value&quot; in<br>
Data.Aeson.Types in hackage, you will see that the HashMap link links<br>
to <a href="http://hackage.haskell.org/packages/archive/unordered-containers/0.2.3.0/doc/html/Data-HashMap-Strict.html#t:HashMap" target="_blank">http://hackage.haskell.org/packages/archive/unordered-containers/0.2.3.0/doc/html/Data-HashMap-Strict.html#t:HashMap</a>,<br>

which tells you what package it came from and what to import.<br>
<div class="HOEnZb"><div class="h5"><br>
On Sun, Mar 17, 2013 at 11:16 AM, Emmanuel Touzery &lt;<a href="mailto:etouzery@gmail.com">etouzery@gmail.com</a>&gt; wrote:<br>
&gt; Thank you, that was the trick! It would be handy it there was a way through<br>
&gt; the online hackage packages pages to click through the dependencies. I guess<br>
&gt; you checked the .cabal by hand or used some slightly more arcane cabal<br>
&gt; commands to get that information.<br>
&gt;<br>
&gt; Thank you again and nice rest of week-end!<br>
&gt;<br>
&gt; Emmanuel<br>
&gt;<br>
&gt;<br>
&gt; On Sun, Mar 17, 2013 at 2:51 PM, Andres Löh &lt;<a href="mailto:andres@well-typed.com">andres@well-typed.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi again.<br>
&gt;&gt;<br>
&gt;&gt; &gt;  thank you for the tip! It helps but it&#39;s not quite there yet. If you<br>
&gt;&gt; &gt; see<br>
&gt;&gt; &gt; the program in attachment, I can make it compile only by commenting the<br>
&gt;&gt; &gt; type<br>
&gt;&gt; &gt; declaration for the second function, otherwise it&#39;s the exact same error<br>
&gt;&gt; &gt; message as before.<br>
&gt;&gt;<br>
&gt;&gt; You&#39;re probably using the wrong HashMap. There are several packages on<br>
&gt;&gt; Hackage implementing similarly-named data structures (which is<br>
&gt;&gt; confusing, I know, but such is life in a decentralized and open<br>
&gt;&gt; world). You should use what aeson is using (because that&#39;s the library<br>
&gt;&gt; defining the Object type synonym).<br>
&gt;&gt;<br>
&gt;&gt; Looking at the import list of<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://hackage.haskell.org/packages/archive/aeson/0.6.0.2/doc/html/src/Data-Aeson-Types-Internal.html" target="_blank">http://hackage.haskell.org/packages/archive/aeson/0.6.0.2/doc/html/src/Data-Aeson-Types-Internal.html</a><br>

&gt;&gt;<br>
&gt;&gt; we see<br>
&gt;&gt;<br>
&gt;&gt; import Data.HashMap.Strict (HashMap)<br>
&gt;&gt;<br>
&gt;&gt; and by checking the package dependencies of aeson, we figure out that<br>
&gt;&gt; this module is provided by the unordered-containers package.<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt;   Andres<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Andres Löh, Haskell Consultant<br>
&gt;&gt; Well-Typed LLP, <a href="http://www.well-typed.com" target="_blank">http://www.well-typed.com</a><br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Beginners mailing list<br>
&gt;&gt; <a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
&gt;&gt; <a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Beginners mailing list<br>
&gt; <a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
&gt;<br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br></div>