[commit: ghc] master: Remove identity update of field componentsConfigs (fe4008f)
git at git.haskell.org
git at git.haskell.org
Fri Aug 5 08:06:01 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/fe4008f6cc51612c2511cf23fcd646bc23ef91b8/ghc
>---------------------------------------------------------------
commit fe4008f6cc51612c2511cf23fcd646bc23ef91b8
Author: Gabor Greif <ggreif at gmail.com>
Date: Fri Aug 5 09:52:26 2016 +0200
Remove identity update of field componentsConfigs
... in LocalBuildInfo, getting rid of a TODO in the
process. Turns out that componentsConfigs won't be
a field in Cabal 2.0 any more, so this can be seen
as a preparation for it.
>---------------------------------------------------------------
fe4008f6cc51612c2511cf23fcd646bc23ef91b8
utils/ghc-cabal/Main.hs | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/utils/ghc-cabal/Main.hs b/utils/ghc-cabal/Main.hs
index 99f34d9..8cc1d1a 100644
--- a/utils/ghc-cabal/Main.hs
+++ b/utils/ghc-cabal/Main.hs
@@ -229,12 +229,7 @@ doRegister directory distDir ghc ghcpkg topdir
progs' <- configurePrograms [ghcProgram', ghcPkgProgram'] progs
instInfos <- dump (hcPkgInfo progs') verbosity GlobalPackageDB
let installedPkgs' = PackageIndex.fromList instInfos
- let updateComponentConfig (clbi, deps)
- = (updateComponentLocalBuildInfo clbi, deps)
- updateComponentLocalBuildInfo clbi = clbi -- TODO: remove
- ccs' = map updateComponentConfig (componentsConfigs lbi)
- lbi' = lbi {
- componentsConfigs = ccs',
+ let lbi' = lbi {
installedPkgs = installedPkgs',
installDirTemplates = idts,
withPrograms = progs'
More information about the ghc-commits
mailing list