Of course I had a go at this using --allow-boot-library-install
❯ cabal repl -w ghc-9.4 -b ghc --constraint 'ghc == 9.8.1' --allow-boot-library-install
Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] trying: fake-package-0 (user goal)
[__1] next goal: ghc (dependency of fake-package)
[__1] rejecting: ghc-9.4.7/installed-9.4.7 (constraint from command line flag
requires ==9.8.1)
[__1] trying: ghc-9.8.1
[__2] next goal: ghci (dependency of ghc +/-static-libzstd +/-with-libzstd)
[__2] rejecting: ghci-9.4.7/installed-9.4.7, ghci-8.10.2, ghci-8.10.1,
ghci-8.8.3, ghci-8.8.1, ghci-8.6.5, ghci-8.6.4, ghci-8.6.1, ghci-8.4.4,
ghci-8.4.3, ghci-8.4.2, ghci-8.4.1, ghci-8.2.2, ghci-8.2.1, ghci-8.0.2,
ghci-8.0.1 (conflict: ghc +/-static-libzstd +/-with-libzstd => ghci==9.8.1)
[__2] fail (backjumping, conflict set: ghc, ghci)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: ghc, ghci, fake-package
The failure is more mundane than I expected. The package ghc
depends on ghci
and ghci
has not been uploaded to hackage since version 8.10.2. So there is just no source to build