cabal
Duncan Coutts
duncan.coutts at worc.ox.ac.uk
Mon Oct 20 14:15:39 EDT 2008
On Mon, 2008-10-20 at 16:28 +0200, Christian Maeder wrote:
> Hi,
>
> currently I've got a problem installing from hackage.
> using:
> GHC (package manager) version 6.10.0.20081019
> cabal-install version 0.6.0
> using version 1.6.0.1 of the Cabal library
>
> I get:
>
> Building network-2.2.0.0...
>
> Network/URI.hs:128:7:
> Could not find module `Data.Generics':
> it is a member of package base-3.0.3.0, which is hidden
The basic problem here is that the version number of the network package
has not been bumped. You probably installed from a ghc bindist that has
network-2.2.0.0 already, however it's not the same as network-2.2.0.0
from hackage. The pre-installed one is built against base-4, so when
cabal-install tries to rebuild it then it tries to build it against base
4 which does not work because the one on hackage has not been updated.
Normally cabal-install would use base-3 but in this case it's picking 4
because the version that is already installed used 4 so the assumption
is that since the same version is already installed then it does indeed
work with base 4. Of course that's not true here because the package has
changed without the version being bumped.
Indeed the only reason it's trying to rebuild it at all is because the
installed version has different deps from the available version, again
due to the fact that it changed without changing version number.
So the solution is for the updated network package to have its version
bumped and for it to be released.
Duncan
More information about the cabal-devel
mailing list