patch applied (cabal): Add a unuque identifier for installed
packages (part 3 of 9)
Duncan Coutts
duncan.coutts at worc.ox.ac.uk
Sat Aug 22 11:36:10 EDT 2009
Thu Aug 6 06:18:10 PDT 2009 Simon Marlow <marlowsd at gmail.com>
* Add a unuque identifier for installed packages (part 3 of 9)
Ignore-this: 455a736ea5a3241aa6040f4c684ab0b3
This part adds the InstalledPackageIndex type to
Distribution.Simple.PackageIndex. Now that packages have a unique
identifier within a package database, it makes sense to use this as
the key for looking up installed packages, so InstalledPackageIndex is
a mapping from InstalledPackageId to InstalledPackageInfo.
Distribution.Simple.PackageIndex still supports other kinds of package
mappings: PackageIndex is a mapping from PackageName.
All the functions in the section "Special Queries" now work on
InstalledPackageIndex rather than PackageFixedDeps pkg => PackageIndex
pkg:
topologicalOrder,
reverseTopologicalOrder,
dependencyInconsistencies,
dependencyCycles,
brokenPackages,
dependencyClosure,
reverseDependencyClosure
dependencyGraph
M ./Distribution/Simple/PackageIndex.hs -103 +146
View patch online:
http://darcs.haskell.org/cabal/_darcs/patches/20090806131810-12142-7676550c410480e947ad416aadd9eb70532567be.gz
More information about the cabal-devel
mailing list