File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
cabal-install/src/Distribution/Client Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2220,14 +2220,12 @@ elaborateInstallPlan
22202220 pkgDependsOnSelfLib =
22212221 CD. fromList
22222222 [ (CD. componentNameToComponent cn, [() ])
2223- | Graph. N _ cn _ <- fromMaybe [] mb_closure
2223+ | Graph. N _ cn _ <- closure
22242224 ]
22252225 where
2226- mb_closure = Graph. revClosure compGraph [k | k <- Graph. keys compGraph, is_lib k]
2227- -- NB: the sublib case should not occur, because sub-libraries
2228- -- are not supported without per-component builds
2229- is_lib (CLibName _) = True
2230- is_lib _ = False
2226+ closure =
2227+ fromMaybe (error " elaborateSolverToPackage: internal error, no closure for main lib" ) $
2228+ Graph. revClosure compGraph [k | k@ (CLibName LMainLibName ) <- Graph. keys compGraph]
22312229
22322230 buildComponentDeps :: Monoid a => (ElaboratedComponent -> a ) -> CD. ComponentDeps a
22332231 buildComponentDeps f =
You can’t perform that action at this time.
0 commit comments