Remove identity update of field componentsConfigs
authorGabor Greif <ggreif@gmail.com>
Fri, 5 Aug 2016 07:52:26 +0000 (09:52 +0200)
committerGabor Greif <ggreif@gmail.com>
Fri, 5 Aug 2016 07:52:26 +0000 (09:52 +0200)
... 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.

utils/ghc-cabal/Main.hs

index 99f34d9..8cc1d1a 100644 (file)
@@ -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'