@@ -672,7 +672,6 @@ rebuildInstallPlan verbosity
672672 projectConfigAllPackages,
673673 projectConfigLocalPackages,
674674 projectConfigSpecificPackage,
675- projectPackagesNamed,
676675 projectConfigBuildOnly
677676 }
678677 (compiler, platform, progdb) pkgConfigDB
@@ -698,7 +697,6 @@ rebuildInstallPlan verbosity
698697 localPackages
699698 sourcePackageHashes
700699 installDirs
701- projectPackagesNamed
702700 projectConfigShared
703701 projectConfigAllPackages
704702 projectConfigLocalPackages
@@ -1363,7 +1361,6 @@ elaborateInstallPlan
13631361 -> [PackageSpecifier (SourcePackage (PackageLocation loc ))]
13641362 -> Map PackageId PackageSourceHash
13651363 -> InstallDirs. InstallDirTemplates
1366- -> [PackageVersionConstraint ]
13671364 -> ProjectConfigShared
13681365 -> PackageConfig
13691366 -> PackageConfig
@@ -1375,7 +1372,6 @@ elaborateInstallPlan verbosity platform compiler compilerprogdb pkgConfigDB
13751372 solverPlan localPackages
13761373 sourcePackageHashes
13771374 defaultInstallDirs
1378- extraPackages
13791375 sharedPackageConfig
13801376 allPackagesConfig
13811377 localPackagesConfig
@@ -2046,21 +2042,15 @@ elaborateInstallPlan verbosity platform compiler compilerprogdb pkgConfigDB
20462042 $ map packageId
20472043 $ SolverInstallPlan. reverseDependencyClosure
20482044 solverPlan
2049- (map PlannedId (Set. toList pkgsInplaceToProject ))
2045+ (map PlannedId (Set. toList pkgsLocalToProject ))
20502046
20512047 isLocalToProject :: Package pkg => pkg -> Bool
20522048 isLocalToProject pkg = Set. member (packageId pkg)
20532049 pkgsLocalToProject
20542050
2055- pkgsInplaceToProject :: Set PackageId
2056- pkgsInplaceToProject =
2057- Set. fromList (catMaybes (map shouldBeLocal localPackages))
2058- -- TODO: localPackages is a misnomer, it's all project packages
2059- -- here is where we decide which ones will be local!
2060-
20612051 pkgsLocalToProject :: Set PackageId
20622052 pkgsLocalToProject =
2063- Set. fromList (catMaybes (map (isInLocal extraPackages) localPackages))
2053+ Set. fromList (catMaybes (map shouldBeLocal localPackages))
20642054 -- TODO: localPackages is a misnomer, it's all project packages
20652055 -- here is where we decide which ones will be local!
20662056
@@ -2129,28 +2119,6 @@ shouldBeLocal (SpecificSourcePackage pkg) = case srcpkgSource pkg of
21292119 LocalUnpackedPackage _ -> Just (packageId pkg)
21302120 _ -> Nothing
21312121
2132- -- Used to determine which packages are affected by local package configuration
2133- -- flags like ‘--enable-shared --enable-executable-dynamic --disable-library-vanilla’.
2134- isInLocal :: [PackageVersionConstraint ] -> PackageSpecifier (SourcePackage (PackageLocation loc )) -> Maybe PackageId
2135- isInLocal _ NamedPackage {} = Nothing
2136- isInLocal _extraPackages (SpecificSourcePackage pkg) = case srcpkgSource pkg of
2137- LocalUnpackedPackage _ -> Just (packageId pkg)
2138- -- LocalTarballPackage is matched here too, because otherwise ‘sdistize’
2139- -- produces for ‘localPackages’ in the ‘ProjectBaseContext’ a
2140- -- LocalTarballPackage, and ‘shouldBeLocal’ will make flags like
2141- -- ‘--disable-library-vanilla’ have no effect for a typical
2142- -- ‘cabal install --lib --enable-shared enable-executable-dynamic --disable-library-vanilla’,
2143- -- as these flags would apply to local packages, but the sdist would
2144- -- erroneously not get categorized as a local package, so the flags would be
2145- -- ignored and produce a package with an unchanged hash.
2146- LocalTarballPackage _ -> Just (packageId pkg)
2147- -- TODO: the docs say ‘extra-packages’ is implemented in cabal project
2148- -- files. We can fix that here by checking that the version range matches.
2149- -- RemoteTarballPackage _ -> _
2150- -- RepoTarballPackage _ -> _
2151- -- RemoteSourceRepoPackage _ -> _
2152- _ -> Nothing
2153-
21542122-- | Given a 'ElaboratedPlanPackage', report if it matches a 'ComponentName'.
21552123matchPlanPkg :: (ComponentName -> Bool ) -> ElaboratedPlanPackage -> Bool
21562124matchPlanPkg p = InstallPlan. foldPlanPackage (p . ipiComponentName) (matchElabPkg p)
@@ -3430,8 +3398,7 @@ setupHsScriptOptions (ReadyPackage elab@ElaboratedConfiguredPackage{..})
34303398 useWin32CleanHack = False , -- TODO: [required eventually]
34313399 forceExternalSetupMethod = isParallelBuild,
34323400 setupCacheLock = Just cacheLock,
3433- isInteractive = False ,
3434- setupConfigDynamic = elabDynExe
3401+ isInteractive = False
34353402 }
34363403
34373404
0 commit comments