From 9793fc68888a9c1791a8e19769bb83abbe2b00f3 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 30 May 2021 15:17:04 +0200 Subject: [PATCH] Update stack things --- bootstrap-haskell | 26 ++++++++++++++++++++++++-- ghcup-0.0.4.yaml | 2 ++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/bootstrap-haskell b/bootstrap-haskell index beb737c..43b9738 100755 --- a/bootstrap-haskell +++ b/bootstrap-haskell @@ -147,9 +147,10 @@ echo "Welcome to Haskell!" echo echo "This script will download and install the following binaries:" echo " * ghcup - The Haskell toolchain installer" -echo " (for managing GHC/cabal versions)" echo " * ghc - The Glasgow Haskell Compiler" -echo " * cabal - The Cabal build tool" +echo " * cabal - The Cabal build tool for managing Haskell software" +echo " * stack - (optional) A cross-platform program for developing Haskell projects" +echo " * hls - (optional) A language server for developers to integrate with their editor/IDE" echo if [ -z "${GHCUP_USE_XDG_DIRS}" ] ; then echo "ghcup installs only into the following directory," @@ -229,6 +230,27 @@ if [ -z "${BOOTSTRAP_HASKELL_NONINTERACTIVE}" ] ; then esac done + printf "\\033[0;35m%s\\033[0m\\n" "Do you want to install stack now?" + printf "\\033[0;35m%s\\033[0m\\n" "Stack is a haskell build tool similar to cabal that is used by some projects." + printf "\\033[0;35m%s\\033[0m\\n" "Also see https://docs.haskellstack.org/" + printf "\\033[0;35m%s\\033[0m\\n" "" + printf "\\033[0;35m%s\\033[0m\\n" "Answer with YES or NO and press ENTER." + printf "\\033[0;35m%s\\033[0m\\n" "" + + while true; do + read -r stack_answer