I think this might be an instance of this “bug”: https://github.com/haskell/cabal/issues/5559. I also ran into it and fixed it by going into ~/.ghc/x86_64-linux-<ghc-version>/environments/default
and removing the line containing package-id X11-1.9.1-As84WI1VImVHquwEDPbrTE
. To avoid this issue in the future you should avoid using cabal install --lib
for now.
2 Likes