[Haskell-cafe] library version problem
vigalchin at gmail.com
Fri Apr 11 16:45:47 EDT 2008
Right I am just trying to rebuild the unix package. No matter what version
is present in the unix.cabal file,
runhaskell Setup.hs configure
produces an error concerning unix-184.108.40.206
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.
ghc-pkg seems to be at the center of this problem because the problem seems
to have to deal with the package database.
1) On Linux(Ubuntu) where is the package database?
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?
On Fri, Apr 11, 2008 at 9:33 AM, Brent Yorgey <byorgey at gmail.com> wrote:
> On Fri, Apr 11, 2008 at 3:11 AM, Ketil Malde <ketil at malde.org> wrote:
> > "Galchin, Vasili" <vigalchin at gmail.com> writes:
> > >> ghci
> > > :m System.Posix
> > >
> > > I am getting the wrong version of the Unix package. I know this to be
> > true
> > > because I did
> > > ghc-pkg latest unix
> > >
> > > and got unix-220.127.116.11
> > >
> > > I want unix.18.104.22.168 because this version has changes that I made
> > Naturally, you'll get 22.214.171.124, since it has the highest version number!
> > Either rename your modified version to 2.4 (or similar), specify the
> > exact version in your *application's* cabal file, or use
> > "ghc-pkg hide" to hide version 126.96.36.199 from view.
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe