<div dir="ltr">It is also possible to refer to a package explicitly durring import with the PackageImports language pragma.  You can read about it in the ghc manual[1].<div><br></div><div style>Patrick</div><div class="gmail_extra">

<br></div><div class="gmail_extra">[1] <a href="http://www.haskell.org/ghc/docs/7.2.1/html/users_guide/syntax-extns.html#package-imports">http://www.haskell.org/ghc/docs/7.2.1/html/users_guide/syntax-extns.html#package-imports</a><br>

<br><div class="gmail_quote">On Fri, Apr 26, 2013 at 10:10 PM, Hong Yang <span dir="ltr">&lt;<a href="mailto:hyangfji@gmail.com" target="_blank">hyangfji@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr">Thanks.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, Apr 26, 2013 at 8:33 AM, Brandon Allbery <span dir="ltr">&lt;<a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>&gt;</span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>On Thu, Apr 25, 2013 at 11:12 PM, Hong Yang <span dir="ltr">&lt;<a href="mailto:hyangfji@gmail.com" target="_blank">hyangfji@gmail.com</a>&gt;</span> wrote:<br>



</div><div class="gmail_extra"><div class="gmail_quote"><div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">There are two modules called the same name: System.IO.Strict, documented respectively at<br>

    <a href="http://hackage.haskell.org/packages/archive/strict-io/0.2.1/doc/html/System-IO-Strict.html" target="_blank">http://hackage.haskell.org/packages/archive/strict-io/0.2.1/doc/html/System-IO-Strict.html</a><br>




    <a href="http://hackage.haskell.org/package/strict-0.3.2" target="_blank">http://hackage.haskell.org/package/strict-0.3.2</a><br>  <br>My questions are:<br><br>1)    Will these two modules coexist in the same version of GHC? Or put it another way, both modules&#39; .tar.gz files have System/IO/Strict.hs inside, will they overlap in physical disk? From where can I tell which locations they will be installed to?<br>




</div></blockquote><div><br></div></div><div>Each module gets its own directory tree under /usr/lib/ghc or ~/.ghc.</div><div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">




<div dir="ltr">2)    If yes, which module will &quot;import System.IO.Strict&quot; actually use?<br></div></blockquote><div><br></div></div><div>This is a bit harder; it will try to pick one, but I don&#39;t know the rules. Ultimately it&#39;s best to use -package parameters to tell it which package to take it from.</div>




<div><br></div><div>This is where building with cabal-install helps, as you specify the package to use in the manifest and only the packages listed in the manifest will be visible to ghc.</div><span><font color="#888888"><div>



 </div></font></span></div><span><font color="#888888">
-- <br><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>




<div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div>
</font></span></div></div>
<br></div></div>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">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>
<br></blockquote></div><br></div>
<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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Patrick Wheeler<br><a href="mailto:Patrick.John.Wheeler@gmail.com">Patrick.John.Wheeler@gmail.com</a><br><a href="mailto:Patrick.J.Wheeler@rice.edu">Patrick.J.Wheeler@rice.edu</a><br>

<a href="mailto:Patrick.Wheeler@colorado.edu">Patrick.Wheeler@colorado.edu</a>
</div></div>