Skip to content
  • Sylvain Henry's avatar
    Refactor UnitInfo · 10a2ba90
    Sylvain Henry authored and Marge Bot's avatar Marge Bot committed
    * Rename InstalledPackageInfo into GenericUnitInfo
    
    The name InstalledPackageInfo is only kept for alleged backward
    compatibility reason in Cabal. ghc-boot has its own stripped down copy
    of this datatype but it doesn't need to keep the name. Internally we
    already use type aliases (UnitInfo in GHC, PackageCacheFormat in
    ghc-pkg).
    
    * Rename UnitInfo fields: add "unit" prefix and fix misleading names
    
    * Add comments on every UnitInfo field
    
    * Rename SourcePackageId into PackageId
    
    "Package" already indicates that it's a "source package". Installed
    package components are called units.
    
    Update Haddock submodule
    10a2ba90