Skip to content

Commit 71a6fc9

Browse files
committed
Use installPath in warning message which is already in scope.
1 parent 69f6f9d commit 71a6fc9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cabal-install/Distribution/Client/CmdInstall.hs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -658,13 +658,12 @@ installExes verbosity baseCtx buildCtx platform compiler
658658

659659
mkFinalExeName :: UnqualComponentName -> FilePath
660660
mkFinalExeName exe = prefix <> unUnqualComponentName exe <> suffix <.> exeExtension platform
661-
installdirUnknown path =
661+
installdirUnknown =
662662
"installdir is not defined. Set it in your cabal config file "
663-
++ "or use --installdir=<path>. Using default installdir: " ++ show path
663+
++ "or use --installdir=<path>. Using default installdir: " ++ show installPath
664664

665665
installdir <- fromFlagOrDefault
666-
(warn verbosity (installdirUnknown installPath)
667-
>> pure installPath) $
666+
(warn verbosity installdirUnknown >> pure installPath) $
668667
pure <$> cinstInstalldir clientInstallFlags
669668
createDirectoryIfMissingVerbose verbosity False installdir
670669
warnIfNoExes verbosity buildCtx

0 commit comments

Comments
 (0)