patch applied (cabal): Add InstalledPackageIndex type and use it in place of [InstalledPackageInfo]