@@ -219,9 +219,8 @@ ghciCmd ghciOpts =
219
219
}
220
220
local (set buildOptsL boptsLocal) (ghci ghciOpts)
221
221
222
- -- | Launch a GHCi session for the given local package targets with the
223
- -- given options and configure it with the load paths and extensions
224
- -- of those targets.
222
+ -- | Launch a GHCi session for the given project package targets with the given
223
+ -- options and configure it with the load paths and extensions of those targets.
225
224
ghci :: HasEnvConfig env => GhciOpts -> RIO env ()
226
225
ghci opts = do
227
226
let buildOptsCLI = defaultBuildOptsCLI
@@ -280,7 +279,7 @@ ghci opts = do
280
279
case targets of
281
280
TargetAll _ -> [T. pack (packageNameString pn)]
282
281
TargetComps comps -> [renderPkgComponent (pn, c) | c <- toList comps]
283
- -- Build required dependencies and setup local packages.
282
+ -- Build required dependencies and setup project packages.
284
283
buildDepsAndInitialSteps opts $
285
284
concatMap (\ (pn, (_, t)) -> pkgTargets pn t) localTargets
286
285
targetWarnings localTargets nonLocalTargets mfileTargets
@@ -472,11 +471,11 @@ getAllNonLocalTargets targets = do
472
471
buildDepsAndInitialSteps :: HasEnvConfig env => GhciOpts -> [Text ] -> RIO env ()
473
472
buildDepsAndInitialSteps ghciOpts localTargets = do
474
473
let targets = localTargets ++ map T. pack ghciOpts. additionalPackages
475
- -- If necessary, do the build, for local packagee targets, only do
474
+ -- If necessary, do the build, for project packagee targets, only do
476
475
-- 'initialBuildSteps'.
477
476
whenJust (nonEmpty targets) $ \ nonEmptyTargets ->
478
477
unless ghciOpts. noBuild $ do
479
- -- only new local targets could appear here
478
+ -- only new project package targets could appear here
480
479
eres <- buildLocalTargets nonEmptyTargets
481
480
case eres of
482
481
Right () -> pure ()
@@ -1133,19 +1132,20 @@ targetWarnings localTargets nonLocalTargets mfileTargets = do
1133
1132
, parens $ fillSep $ punctuate " ," $ map
1134
1133
(style Good . fromPackageName)
1135
1134
nonLocalTargets
1136
- , flow " are not local packages, and so cannot be directly loaded. In \
1135
+ , flow " are not project packages, and so cannot be directly loaded. In \
1137
1136
\future versions of Stack, this might be supported - see"
1138
- , style Url " https://github.com/commercialhaskell/stack/issues/1441"
1139
- , " ."
1137
+ , style Url " https://github.com/commercialhaskell/stack/issues/1441" <> " ."
1140
1138
, flow " It can still be useful to specify these, as they will be passed \
1141
- \to ghci via -package flags."
1139
+ \to ghci via"
1140
+ , style Shell " -package"
1141
+ , " flags."
1142
1142
]
1143
1143
when (null localTargets && isNothing mfileTargets) $ do
1144
1144
smWanted <- view $ buildConfigL . to (. smWanted)
1145
1145
stackYaml <- view stackYamlL
1146
1146
prettyNote $ vsep
1147
- [ flow " No local targets specified, so a plain ghci will be started with \
1148
- \no package hiding or package options."
1147
+ [ flow " No project package targets specified, so a plain ghci will be \
1148
+ \started with no package hiding or package options."
1149
1149
, " "
1150
1150
, flow $ T. unpack $ utf8BuilderToText $
1151
1151
" You are using snapshot: " <>
0 commit comments