Skip to content

Commit 7690232

Browse files
committed
Updates for stack-0.1.5.0
1 parent 6bd5466 commit 7690232

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

Config.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defaultVersion :: Program -> Version
2424
-- Latest released versions of all
2525
defaultVersion GHC = "7.10.2"
2626
defaultVersion Git = "2.4.5.1"
27-
defaultVersion Stack = "0.1.4.0"
27+
defaultVersion Stack = "0.1.5.0"
2828

2929
source :: Arch -> Program -> Version -> String
3030
-- Official GHC release, available in xv and bz2, but the xv one is harder to extract on Windows systems

bin/minghc-post-install.exe.7z

120 Bytes
Binary file not shown.

minghc-post-install.hs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
-- Note: we should only depend on libraries that ship with GHC for this. No
22
-- external dependencies!
33
import Control.Monad (when)
4+
import Data.List (concat, isPrefixOf)
45
import Data.Version (Version, parseVersion)
56
import Prelude (Bool (..), FilePath, elem, error,
67
filter, fmap, getLine, lines,
@@ -14,7 +15,7 @@ import System.Directory (doesFileExist,
1415
import System.Environment (getArgs, getExecutablePath)
1516
import System.Exit (ExitCode (ExitSuccess))
1617
import System.FilePath (splitExtension, takeDirectory,
17-
takeExtension, (</>))
18+
takeExtension, takeFileName, (</>))
1819
import System.IO (IO, hFlush, stdout)
1920
import System.Process (rawSystem, readProcess)
2021
import Text.ParserCombinators.ReadP (readP_to_S)
@@ -58,11 +59,11 @@ un7z destPath sevenz =
5859
go fp = when (ext `elem` exts) $ do
5960
putStrLn $ "Decompressing " ++ fp ++ " to " ++ destPath
6061
ec <- rawSystem sevenz
61-
[ "x"
62-
, "-o" ++ destPath
63-
, "-y"
64-
, fp
65-
]
62+
(concat [ [ "x"
63+
, "-o" ++ destPath
64+
, "-y"
65+
, fp ]
66+
, [ "stack.exe" | "stack-" `isPrefixOf` (takeFileName fp) ]])
6667
removeFile fp
6768
when (ec /= ExitSuccess)
6869
$ error $ "Could not decompress: " ++ fp

0 commit comments

Comments
 (0)