Skip to content

Commit c2fa525

Browse files
committed
Drop Stack.Path
1 parent 17dd0dc commit c2fa525

3 files changed

Lines changed: 9 additions & 21 deletions

File tree

src/Stack/Config.hs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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
7778
import Stack.Types
7879
import System.Directory
7980
import System.Environment
81+
import System.FilePath (searchPathSeparator)
8082
import 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.
954956
stackageDotConfig :: Path Rel File
955957
stackageDotConfig = $(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)

src/Stack/Path.hs

Lines changed: 0 additions & 20 deletions
This file was deleted.

stack.cabal

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)