<br><div class="gmail_quote">On Fri, Apr 11, 2008 at 3:11 AM, Ketil Malde <<a href="mailto:ketil@malde.org">ketil@malde.org</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
"Galchin, Vasili" <<a href="mailto:vigalchin@gmail.com">vigalchin@gmail.com</a>> writes:<br>
<br>
>> ghci<br>
> :m System.Posix<br>
><br>
> I am getting the wrong version of the Unix package. I know this to be true<br>
> because I did<br>
> ghc-pkg latest unix<br>
><br>
> and got unix-2.3.0.0<br>
><br>
> I want unix.2.2.0.0 because this version has changes that I made<br>
<br>
Naturally, you'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's* cabal file, or use<br>
"ghc-pkg hide" to hide version <a href="http://2.3.0.0" target="_blank">2.3.0.0</a> from view.<br>
</blockquote><br>Actually, I'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