
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-env...
which is likely if you indeed installed whole packages, and not just
executables from the packages (`cabal install` only installs executables).
If the problem persists please file a ticket on cabal github bug tracker.
BTW, I haven't received your email, but only the response from Tom.
Nothing in the spam folder, either. Strange.
On Thu, Sep 15, 2022 at 5:32 PM Tom Ellis
On Thu, Sep 15, 2022 at 05:23:10PM +0200, Volker Wysk wrote:
I've lately set up the Haskell environment on my Linux box, with no problems. Then I have installed some packages with "cabal install", again without problems. But now I'm trying to install another package and I get a dependency conflict. It doesn't seem to matter which package I try to install:
This is quite weird, because neither directory nor ghc are dependencies of rfc5051.
As a first step, can you try the following and report back whether you successfully get to a GHCi a prompt?
$ cabal repl -z --build-depends rfc5051
desktop ~ $ cabal install rfc5051 Resolving dependencies... cabal: Could not resolve dependencies: [__0] next goal: directory (user goal) [__0] rejecting: directory-1.3.8.0 (constraint from user target requires ==1.3.7.1) [__0] trying: directory-1.3.7.1 [__1] next goal: ghc (user goal) [__1] rejecting: ghc-9.4.2, ghc-9.4.1, ghc-9.2.4, ghc-9.2.3, ghc-9.2.2, ghc-9.2.1, ghc-9.0.2, ghc-8.10.7, ghc-8.10.2, ghc-8.10.1 (constraint from user target requires ==8.8.4) [__1] rejecting: ghc-8.8.4/installed-8.8... (conflict: directory==1.3.7.1, ghc => directory==1.3.6.0/installed-1.3...) [__1] rejecting: ghc-8.8.3, ghc-8.8.1, ghc-8.6.5, ghc-8.6.4, ghc-8.6.1, ghc-8.4.4, ghc-8.4.3, ghc-8.4.1, ghc-8.2.2, ghc-8.2.1, ghc-9.2.3.20220620 (constraint from user target requires ==8.8.4) [__1] fail (backjumping, conflict set: directory, ghc) After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: directory, ghc
Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.