patch applied (cabal-install): Add lookupConfiguredPackage helper function to InstallPlan