patch applied (cabal): Add a unuque identifier for installed packages (part 4 of 9)

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Sat Aug 22 11:36:11 EDT 2009


Thu Aug  6 06:18:29 PDT 2009  Simon Marlow <marlowsd at gmail.com>
  * Add a unuque identifier for installed packages (part 4 of 9)
  Ignore-this: cd1f965c30d3dbd26dd184b3fd126163
  
  Distribution.Simple.LocalBuildInfo: 
  
    - the LocalBuildInfo record contains an index of the installed
      packages; this has changed from PackageIndex InstalledPackageInfo
      to InstalledPackageIndex.
  
    - ComponentLocalBuildInfo stores the "external package dependencies"
      of the component, which was 
        componentPackageDeps :: [PackageId]
      and is now
        componentInstalledPackageDeps :: [InstalledPackageId]
  
    - we now export
        componentPackageDeps :: LocalBuildInfo -> [PackageId]
      (since to get the PackageId for an InstalledPackageId, you need
      to look it up in the InstalledPackageIndex, which is in the
      LocalBuildInfo)
  
    - similarly, previously
        externalPackageDeps :: LocalBuildInfo -> [PackageId]
      is now
        externalPackageDeps :: LocalBuildInfo -> [InstalledPackageId]

    M ./Distribution/Simple/LocalBuildInfo.hs -8 +24

View patch online:
http://darcs.haskell.org/cabal/_darcs/patches/20090806131829-12142-c7c92257c4debec227bf495915342fde6e1b66d8.gz



More information about the cabal-devel mailing list