Skip to content

Commit

Permalink
Reword --dry-run no packages to unregister
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed Aug 6, 2015
1 parent 03a2aff commit 4d4b8b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Stack/Build/Execute.hs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ printPlan :: M env m
-> m ()
printPlan finalAction plan = do
case Map.toList $ planUnregisterLocal plan of
[] -> $logInfo "Nothing to unregister"
[] -> $logInfo "No packages would be unregistered."
xs -> do
$logInfo "Would unregister locally:"
forM_ xs $ \(gid, reason) -> $logInfo $ T.concat
Expand All @@ -123,7 +123,7 @@ printPlan finalAction plan = do
$logInfo ""

case Map.elems $ planTasks plan of
[] -> $logInfo "Nothing to build"
[] -> $logInfo "Nothing to build."
xs -> do
$logInfo "Would build:"
mapM_ ($logInfo . displayTask) xs
Expand All @@ -139,15 +139,15 @@ printPlan finalAction plan = do
$logInfo ""

case Map.toList $ planFinals plan of
[] -> $logInfo $ "Nothing to " <> finalLabel
[] -> $logInfo $ "Nothing to " <> finalLabel <> "."
xs -> do
$logInfo $ "Would " <> finalLabel <> ":"
forM_ xs $ \(name, _) -> $logInfo $ packageNameText name

$logInfo ""

case Map.toList $ planInstallExes plan of
[] -> $logInfo "No executables to be installed"
[] -> $logInfo "No executables to be installed."
xs -> do
$logInfo "Would install executables:"
forM_ xs $ \(name, loc) -> $logInfo $ T.concat
Expand Down

0 comments on commit 4d4b8b5

Please sign in to comment.