--install-base-libraries makes cabal ignore the list of packages that cannot be installed or upgraded.