[Haskell-cafe] Cabal problem, broken packages?

Tom Ellis tom-lists-haskell-cafe-2017 at jaguarpaw.co.uk
Thu Sep 15 16:33:06 UTC 2022


On Thu, Sep 15, 2022 at 06:09:33PM +0200, Volker Wysk wrote:
> Am Donnerstag, dem 15.09.2022 um 17:47 +0200 schrieb Mikolaj Konarski:
> > This may be caused by some cabal.project lying around
> > (e.g., in the directory you are in when you are installing, but also
> > in any parent directory) or by .ghc.environment.arch-os-version
> > files lying around
> > 
> > https://ghc.gitlab.haskell.org/ghc/doc/users_guide/packages.html#package-environments
> 
> I don't have a cabal.project orĀ .ghc.environment.arch-os-version lying
> around. However, I've found ~/.ghc/x86_64-linux-8.8.4/environments/default,
> which contains this:

GHC 8.8.4 depends on directory 1.3.6.0, therefore the GHC API package,
ghc, does too as mentioned in the original error message:


[__1] rejecting: ghc-8.8.4/installed-8.8... (conflict: directory==1.3.7.1, ghc
=> directory==1.3.6.0/installed-1.3...)


and can be verified at:

https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/libraries/version-history


However, you have got an environment file that requires ghc-8.8.4 and
directory-1.3.7.1 at the same time.  Something's funny about that
because it's impossible to satisfy and I'm not sure how it could have
happened in the first place.  Perhaps some cabal expert can weigh in.

Tom


> clear-package-db
> global-package-db
> package-db /home/v/.cabal/store/ghc-8.8.4/package.db
> package-id ghc-8.8.4
> package-id bytestring-0.10.10.1
> package-id unix-2.7.3-
> f9e049162269c42fac796ce2193bc96fb95dfe3ac975de03338213cf0e37a14a
> package-id base-4.13.0.0
> package-id time-1.12.1-
> 79940fa11921893814fd2d9a0f4653cb6d9b3a2de6720e03a14215ba5d4e06e7
> package-id hpc-0.6.0.3
> package-id filepath-1.4.2.1
> package-id process-1.6.15.0-
> 0397a5aa0d99937f979c3ecfb8c3917000787735a4c430a5ee92c026f8987cf0
> package-id array-0.5.4.0
> package-id integer-gmp-1.0.2.0
> package-id containers-0.6.2.1
> package-id ghc-boot-8.8.4
> package-id binary-0.8.7.0
> package-id ghc-prim-0.5.3
> package-id ghci-8.8.4
> package-id rts
> package-id terminfo-0.4.1.4
> package-id transformers-0.5.6.2
> package-id deepseq-1.4.4.0
> package-id ghc-boot-th-8.8.4
> package-id pretty-1.1.3.6
> package-id template-haskell-2.15.0.0
> package-id directory-1.3.7.1-
> ada0557c8af940ba0586588eddbc02eb543cb70097182636c20a53c37f6c724e
> package-id text-1.2.4.0
> package-id random-1.2.1.1-
> 96a066a3c9e6ce9db8a64c0229a4a92c26549367424a16852f798314b610d9ae
> package-id hsshellscript-3.5.0-
> d22730dc2a5e25b97ff191ad98a6a1517ff456eecf456231207a8e35d428732e


More information about the Haskell-Cafe mailing list