aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2015-08-27 04:33:44 +0200
committerDaniel Gröber <dxld@darkboxed.org>2015-08-27 04:33:44 +0200
commit2e4007139ae000641f4f23f6e6502be5411ef479 (patch)
treeae6451aba7e2de49066b6ca6d5fab9bcbbfcb45c
parent3e22d517f7056deb254da1c7a5616f0dc01a7a97 (diff)
Fix older Cabal versions
-rw-r--r--CabalHelper/Licenses.hs7
1 files changed, 1 insertions, 6 deletions
diff --git a/CabalHelper/Licenses.hs b/CabalHelper/Licenses.hs
index 9d11f3a..7c261bf 100644
--- a/CabalHelper/Licenses.hs
+++ b/CabalHelper/Licenses.hs
@@ -58,12 +58,7 @@ getDependencyInstalledPackageIds
:: Cabal.LocalBuildInfo -> Set Cabal.InstalledPackageId
getDependencyInstalledPackageIds lbi =
findTransitiveDependencies (Cabal.installedPkgs lbi) $
- Set.fromList
- [ installedPackageId
- | (_, componentLbi, _) <- Cabal.componentsConfigs lbi
- , (installedPackageId, _) <- Cabal.componentPackageDeps componentLbi
- ]
-
+ Set.fromList $ map fst $ Cabal.externalPackageDeps lbi
--------------------------------------------------------------------------------
getDependencyInstalledPackageInfos