File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ module Stack.Config
2323 ( Config (.. )
2424 , ConfigException (.. )
2525 , configInDocker
26+ , configBinPaths
2627 , Docker (.. )
2728 , Mount (.. )
2829 , HasConfig (.. )
@@ -77,6 +78,7 @@ import Path.Find
7778import Stack.Types
7879import System.Directory
7980import System.Environment
81+ import System.FilePath (searchPathSeparator )
8082import System.Process
8183
8284-- | The top-level Stackage configuration.
@@ -953,3 +955,10 @@ stackageHostDefault = "https://www.stackage.org"
953955-- | The filename used for the stackage config file.
954956stackageDotConfig :: Path Rel File
955957stackageDotConfig = $ (mkRelFile " stackage.config" )
958+
959+ -- | Get the binary locations as a string that could be used in the PATH
960+ configBinPaths :: Config -> String
961+ configBinPaths config =
962+ toFilePath (configGhcBinLocation config) <>
963+ [searchPathSeparator] <>
964+ toFilePath (configCabalBinLocation config)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ library
2424 Stack.Package
2525 Stack.PackageIndex.Read
2626 Stack.PackageIndex.Update
27- Stack.Path
2827 Stack.Types
2928 Stack.Types.BuildPlan
3029 Stack.Types.FlagName
You can’t perform that action at this time.
0 commit comments