<br><div class="gmail_quote">On Fri, Apr 11, 2008 at 3:11 AM, Ketil Malde &lt;<a href="mailto:ketil@malde.org">ketil@malde.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&quot;Galchin, Vasili&quot; &lt;<a href="mailto:vigalchin@gmail.com">vigalchin@gmail.com</a>&gt; writes:<br>
<br>
&gt;&gt; ghci<br>
&gt; &nbsp; &nbsp; &nbsp; :m System.Posix<br>
&gt;<br>
&gt; I am getting the wrong version of the Unix package. I know this to be true<br>
&gt; because I did<br>
&gt; ghc-pkg latest unix<br>
&gt;<br>
&gt; and got unix-2.3.0.0<br>
&gt;<br>
&gt; I want unix.2.2.0.0 because this version has changes that I made<br>
<br>
Naturally, you&#39;ll get <a href="http://2.3.0.0" target="_blank">2.3.0.0</a>, since it has the highest version number!<br>
<br>
Either rename your modified version to 2.4 (or similar), specify the<br>
exact version in your *application&#39;s* cabal file, or use<br>
&quot;ghc-pkg hide&quot; to hide version <a href="http://2.3.0.0" target="_blank">2.3.0.0</a> from view.<br>
</blockquote><br>Actually, I&#39;m pretty sure that Cabal does not take the visibility states of packages into account when selecting packages to fulfill dependencies, so ghc-pkg hide will not actually work.<br></div><br>
-Brent