From 2e4007139ae000641f4f23f6e6502be5411ef479 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Thu, 27 Aug 2015 04:33:44 +0200 Subject: Fix older Cabal versions --- CabalHelper/Licenses.hs | 7 +------ 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3