File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -183,8 +183,13 @@ ghci opts@GhciOpts{..} = do
183
183
-- need is the location of main modules, not the rest.
184
184
pkgs0 <- getGhciPkgInfos installMap addPkgs (fmap fst mfileTargets) pkgDescs
185
185
figureOutMainFile bopts mainIsTargets localTargets pkgs0
186
+ let pkgTargets pn targets =
187
+ case targets of
188
+ TargetAll _ -> [T. pack (packageNameString pn)]
189
+ TargetComps comps -> [renderPkgComponent (pn, c) | c <- toList comps]
186
190
-- Build required dependencies and setup local packages.
187
- buildDepsAndInitialSteps opts (map (T. pack . packageNameString . fst ) localTargets)
191
+ buildDepsAndInitialSteps opts $
192
+ concatMap (\ (pn, (_, t)) -> pkgTargets pn t) localTargets
188
193
targetWarnings localTargets nonLocalTargets mfileTargets
189
194
-- Load the list of modules _after_ building, to catch changes in
190
195
-- unlisted dependencies (#1180)
You can’t perform that action at this time.
0 commit comments