Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Build simplifications #1168

Merged
merged 13 commits into from
Apr 20, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions install.hs
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ checkStack = do
stackVersion & trim & readP_to_S parseVersion & filter
(("" ==) . snd)
unless (parsedVersion >= makeVersion [1, 9, 3]) $ do
liftIO $ putStrLn $ embedInStars stackExeIsOldFailMsg
error stackExeIsOldFailMsg
liftIO $ putStrLn $ embedInStars $ stackExeIsOldFailMsg stackVersion
error $ stackExeIsOldFailMsg stackVersion


stackBuildHie :: VersionNumber -> Action ()
Expand Down Expand Up @@ -561,7 +561,8 @@ cabalInstallNotSuportedFailMsg =
++ "If this system has been falsely identified, please open an issue at:\n\thttps://github.com/haskell/haskell-ide-engine\n"

-- | Error message when the `stack` binary is an older version
stackExeIsOldFailMsg :: String
stackExeIsOldFailMsg =
stackExeIsOldFailMsg :: String -> String
stackExeIsOldFailMsg stackVersion =
"The `stack` executable is outdated.\n"
++ "found version is `" ++ stackVersion ++ "`.\n"
++ "Please run `stack upgrade` to upgrade your stack installation"