From 46b3dc53d7c2dcaf5ecda4bd8029d7c753727bc3 Mon Sep 17 00:00:00 2001 From: Mike Pilgrem Date: Wed, 23 Sep 2020 21:04:27 +0100 Subject: [PATCH] Fix `stack build` & improve `stack path` help text Updates `stack build` help text to reflect that, under `stack path`, `local-bin-path` is deprecated and replaced by `local-bin`. Updates `stack path` help text to reflect Windows default in addition to default for Unix-like OSs. --- src/Stack/Options/BuildMonoidParser.hs | 2 +- src/Stack/Path.hs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Stack/Options/BuildMonoidParser.hs b/src/Stack/Options/BuildMonoidParser.hs index 864f14556c..e4c4ef4cd1 100644 --- a/src/Stack/Options/BuildMonoidParser.hs +++ b/src/Stack/Options/BuildMonoidParser.hs @@ -112,7 +112,7 @@ buildOptsMonoidParser hide0 = copyBins = firstBoolFlagsFalse "copy-bins" - "copying binaries to the local-bin-path (see 'stack path')" + "copying binaries to local-bin (see 'stack path')" hide copyCompilerTool = firstBoolFlagsFalse diff --git a/src/Stack/Path.hs b/src/Stack/Path.hs index 12f724866b..df517ffbc6 100644 --- a/src/Stack/Path.hs +++ b/src/Stack/Path.hs @@ -167,7 +167,7 @@ paths = , ( "Directory containing binaries specific to a particular compiler (e.g. intero)" , "compiler-tools-bin" , WithoutHaddocks $ T.pack . toFilePathNoTrailingSep . piToolsDir ) - , ( "Local bin dir where stack installs executables (e.g. ~/.local/bin)" + , ( "Local bin dir where stack installs executables (e.g. ~/.local/bin (Unix-like OSs) or %APPDATA%\\local\\bin (Windows))" , "local-bin" , WithoutHaddocks $ view $ configL.to configLocalBin.to toFilePathNoTrailingSep.to T.pack) , ( "Extra include directories"