patch applied (cabal-install): Rewrite getUpgradableDeps so it's simpler and linear time