Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break up Distribution.Package -- only classes and reexports remain #4364

Merged
merged 1 commit into from
Mar 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions Cabal/Cabal.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ library
Distribution.System
Distribution.TestSuite
Distribution.Text
Distribution.Types.AbiHash
Distribution.Types.Benchmark
Distribution.Types.BenchmarkInterface
Distribution.Types.BenchmarkType
Expand All @@ -214,23 +215,30 @@ library
Distribution.Types.ComponentInclude
Distribution.Types.Dependency
Distribution.Types.ExeDependency
Distribution.Types.DependencyMap
Distribution.Types.LegacyExeDependency
Distribution.Types.PkgconfigDependency
Distribution.Types.DependencyMap
Distribution.Types.ComponentId
Distribution.Types.PackageId
Distribution.Types.UnitId
Distribution.Types.Executable
Distribution.Types.Library
Distribution.Types.ForeignLib
Distribution.Types.ForeignLibType
Distribution.Types.ForeignLibOption
Distribution.Types.Module
Distribution.Types.ModuleReexport
Distribution.Types.ModuleRenaming
Distribution.Types.ComponentName
Distribution.Types.PackageName
Distribution.Types.PkgconfigName
Distribution.Types.UnqualComponentName
Distribution.Types.IncludeRenaming
Distribution.Types.Mixin
Distribution.Types.SetupBuildInfo
Distribution.Types.TestSuite
Distribution.Types.TestSuiteInterface
Distribution.Types.TestType
Distribution.Types.ComponentName
Distribution.Types.GenericPackageDescription
Distribution.Types.Condition
Distribution.Types.CondTree
Expand All @@ -242,7 +250,6 @@ library
Distribution.Types.LocalBuildInfo
Distribution.Types.ComponentRequestedSpec
Distribution.Types.TargetInfo
Distribution.Types.UnqualComponentName
Distribution.Utils.Generic
Distribution.Utils.NubList
Distribution.Utils.ShortText
Expand Down
4 changes: 3 additions & 1 deletion Cabal/Distribution/Backpack.hs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ import qualified Text.PrettyPrint as Disp
import Text.PrettyPrint (hcat)

import Distribution.ModuleName
import Distribution.Package
import Distribution.Text
import Distribution.Types.ComponentId
import Distribution.Types.UnitId
import Distribution.Types.Module
import Distribution.Utils.Base62

import qualified Data.Map as Map
Expand Down
3 changes: 3 additions & 0 deletions Cabal/Distribution/Backpack/ConfiguredComponent.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ import Distribution.Backpack.Id

import Distribution.Types.Dependency
import Distribution.Types.IncludeRenaming
import Distribution.Types.ComponentId
import Distribution.Types.PackageId
import Distribution.Types.PackageName
import Distribution.Types.Mixin
import Distribution.Types.UnqualComponentName
import Distribution.Types.ComponentInclude
Expand Down
2 changes: 1 addition & 1 deletion Cabal/Distribution/Backpack/DescribeUnitId.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ module Distribution.Backpack.DescribeUnitId where
import Prelude ()
import Distribution.Compat.Prelude

import Distribution.Types.PackageId
import Distribution.Types.ComponentName
import Distribution.Compat.Stack
import Distribution.Verbosity
import Distribution.ModuleName
import Distribution.Package
import Distribution.Text
import Distribution.Simple.Utils

Expand Down
2 changes: 1 addition & 1 deletion Cabal/Distribution/Backpack/FullUnitId.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Distribution.Backpack.FullUnitId (
) where

import Distribution.Backpack
import Distribution.Package
import Distribution.Types.ComponentId
import Distribution.Compat.Prelude

-- Unlike OpenUnitId, which could direct to a UnitId.
Expand Down
5 changes: 4 additions & 1 deletion Cabal/Distribution/Backpack/Id.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ import Distribution.Compat.Prelude

import Distribution.Types.UnqualComponentName
import Distribution.Simple.Compiler hiding (Flag)
import Distribution.Package
import Distribution.PackageDescription as PD hiding (Flag)
import Distribution.Simple.Setup as Setup
import qualified Distribution.Simple.InstallDirs as InstallDirs
import Distribution.Simple.LocalBuildInfo
import Distribution.Types.ComponentId
import Distribution.Types.PackageId
import Distribution.Types.UnitId
import Distribution.Types.PackageName
import Distribution.Utils.Base62
import Distribution.Version

Expand Down
2 changes: 2 additions & 0 deletions Cabal/Distribution/Backpack/LinkedComponent.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ import Distribution.Types.ComponentName
import Distribution.Types.ModuleRenaming
import Distribution.Types.IncludeRenaming
import Distribution.Types.ComponentInclude
import Distribution.Types.ComponentId
import Distribution.Types.PackageId
import Distribution.Package
import Distribution.PackageDescription as PD hiding (Flag)
import Distribution.ModuleName
Expand Down
2 changes: 1 addition & 1 deletion Cabal/Distribution/Backpack/MixLink.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Distribution.Backpack.FullUnitId
import qualified Distribution.Utils.UnionFind as UnionFind
import Distribution.ModuleName
import Distribution.Text
import Distribution.Package
import Distribution.Types.ComponentId

import Text.PrettyPrint
import Control.Monad
Expand Down
2 changes: 1 addition & 1 deletion Cabal/Distribution/Backpack/ModuleScope.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import Prelude ()
import Distribution.Compat.Prelude

import Distribution.ModuleName
import Distribution.Package
import Distribution.Types.IncludeRenaming
import Distribution.Types.PackageName

import Distribution.Backpack
import Distribution.Backpack.ModSubst
Expand Down
5 changes: 4 additions & 1 deletion Cabal/Distribution/Backpack/PreExistingComponent.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ import Prelude ()

import Distribution.Backpack.ModuleShape
import Distribution.Backpack
import Distribution.Types.ComponentId
import Distribution.Types.PackageId
import Distribution.Types.UnitId
import Distribution.Types.PackageName

import qualified Data.Map as Map
import Distribution.Package
import qualified Distribution.InstalledPackageInfo as Installed
import Distribution.InstalledPackageInfo (InstalledPackageInfo)

Expand Down
5 changes: 5 additions & 0 deletions Cabal/Distribution/Backpack/ReadyComponent.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ import Distribution.Backpack.ModuleShape
import Distribution.Types.ModuleRenaming
import Distribution.Types.Component
import Distribution.Types.ComponentInclude
import Distribution.Types.ComponentId
import Distribution.Types.PackageId
import Distribution.Types.UnitId
import Distribution.Compat.Graph (IsNode(..))
import Distribution.Types.Module
import Distribution.Types.PackageName

import Distribution.ModuleName
import Distribution.Package
Expand Down
Loading