@@ -104,7 +104,7 @@ loadPackageDB settings coreMap core deps = do
104 else mconcat $ map (go gpd . snd) $ condTestSuites gpd
104 else mconcat $ map (go gpd . snd) $ condTestSuites gpd
105 , mconcat $ map (go gpd . snd) $ condBenchmarks gpd
105 , mconcat $ map (go gpd . snd) $ condBenchmarks gpd
106 ], not $ null $ condTestSuites gpd
106 ], not $ null $ condTestSuites gpd
107− , Set.fromList $ map depName $ allBuildInfo p gpd
107+ , Set.fromList $ map depName $ allBuildInfo gpd
108 , Just gpd
108 , Just gpd
109 , Set.fromList $ map (Executable . fst) $ condExecutables gpd
109 , Set.fromList $ map (Executable . fst) $ condExecutables gpd
110 , listToMaybe $ catMaybes
110 , listToMaybe $ catMaybes
@@ -113,7 +113,7 @@ loadPackageDB settings coreMap core deps = do
114 _ -> (mempty, defaultHasTestSuites, Set.empty, Nothing, Set.empty, Nothing)
114 _ -> (mempty, defaultHasTestSuites, Set.empty, Nothing, Set.empty, Nothing)
116− allBuildInfo p gpd = concat
116+ allBuildInfo gpd = concat
117 [ maybe mempty (goBI libBuildInfo) $ condLibrary gpd
117 [ maybe mempty (goBI libBuildInfo) $ condLibrary gpd
118 , concat $ map (goBI buildInfo . snd) $ condExecutables gpd
118 , concat $ map (goBI buildInfo . snd) $ condExecutables gpd
119 , if skipTests p
119 , if skipTests p
@@ -123,10 +123,10 @@ loadPackageDB settings coreMap core deps = do
125 goBI f x = buildTools $ f $ condTreeData x
125 goBI f x = buildTools $ f $ condTreeData x
126− depName (Dependency (PackageName p) _) = Executable p
126+ depName (Dependency (PackageName pn) _) = Executable pn
127 go gpd tree
127 go gpd tree
128 = Map.unionsWith unionVersionRanges
128 = Map.unionsWith unionVersionRanges
129− $ Map.fromList (map (\(Dependency p vr) -> (p, vr)) $ condTreeConstraints tree)
129+ $ Map.fromList (map (\(Dependency pn vr) -> (pn, vr)) $ condTreeConstraints tree)
130 : map (go gpd) (mapMaybe (checkCond gpd) $ condTreeComponents tree)
130 : map (go gpd) (mapMaybe (checkCond gpd) $ condTreeComponents tree)
132 checkCond gpd (cond, tree, melse)
132 checkCond gpd (cond, tree, melse)