nix-shell starts shell but cabal is not working.
[nix-shell:~/pro/ormolu]$ type haskell-language-server
haskell-language-server is /nix/store/cm22flslgspfffa0zwasgzdj8mlfmvmn-haskell-language-server-exe-haskell-language-server-1.8.0.0/bin/haskell-language-server
[nix-shell:~/pro/ormolu]$ type ghc
ghc is /nix/store/9wdivs4vd0gii68d74rw3l6a6dl0c1ap-ghc-shell-for-ormolu-ghc-9.2.4-env/bin/ghc
[nix-shell:~/pro/ormolu]$ type cabal
cabal is hashed (/nix/store/x2ribvhlx8vs7sdg4x993x05xjr86d3b-cabal-install-exe-cabal-3.8.1.0/bin/cabal)
[nix-shell:~/pro/ormolu]$ git log -1
commit 708de707ad44172d9a6019e6f09b48ddc3782170 (HEAD -> master, origin/master, origin/HEAD)
Author: Alexander Esgen <alexander.esgen@tweag.io>
Date: Fri Jan 6 14:40:38 2023 +0100
Stop making empty `let`s move comments
[nix-shell:~/pro/ormolu]$ cabal build
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal
update' to download it.
Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] trying: extract-hackage-info-0.0.0.0 (user goal)
[__1] unknown package: tagsoup (dependency of extract-hackage-info)
[__1] fail (backjumping, conflict set: extract-hackage-info, tagsoup)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: extract-hackage-info, tagsoup
[nix-shell:~/pro/ormolu]$ cabal exec -v0 -- ghc --print-libdir
Error: cabal: Could not resolve dependencies:
[__0] trying: extract-hackage-info-0.0.0.0 (user goal)
[__1] unknown package: tagsoup (dependency of extract-hackage-info)
[__1] fail (backjumping, conflict set: extract-hackage-info, tagsoup)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: extract-hackage-info, tagsoup
deleting ~/.cabal doesn't help.
nix-shell starts shell but cabal is not working.
deleting ~/.cabal doesn't help.