<div>Right I am just trying to rebuild the unix package. No matter what version is present in the unix.cabal file, </div>
<div> </div>
<div>runhaskell Setup.hs configure </div>
<div> </div>
<div>produces an error concerning unix-2.3.0.0</div>
<div> </div>
<div> </div>
<div>Starting to get really frustrated over this. I just want to build a Unix package test case .. and now I can't even build the unix package itself.</div>
<div> </div>
<div> ghc-pkg seems to be at the center of this problem because the problem seems to have to deal with the package database.</div>
<div> </div>
<div>1) On Linux(Ubuntu) where is the package database?</div>
<div> </div>
<div>2) If ghc-pkg is indeed a Haskell program, how can I get the source to better understand the problem I am encountering on my own?<br><br></div>
<div class="gmail_quote">On Fri, Apr 11, 2008 at 9:33 AM, Brent Yorgey <<a href="mailto:byorgey@gmail.com">byorgey@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>
<div class="gmail_quote">
<div class="Ih2E3d">On Fri, Apr 11, 2008 at 3:11 AM, Ketil Malde <<a href="mailto:ketil@malde.org" target="_blank">ketil@malde.org</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">"Galchin, Vasili" <<a href="mailto:vigalchin@gmail.com" target="_blank">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></div>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><font color="#888888"><br>-Brent </font></blockquote></div><br>