Skip to content
Snippets Groups Projects

Use `BOOTSTAP_HASKELL_{GHC,CABAL}_VERSION` env vars as overrides

Closed Artur Gajowy requested to merge ArturGajowy/ghcup:version_env_vars into master
1 file
+ 12
3
Compare changes
  • Side-by-side
  • Inline
+ 12
3
@@ -80,10 +80,19 @@ if [ -z "${BOOTSTRAP_HASKELL_NONINTERACTIVE}" ] ; then
read -r answer </dev/tty
fi
eghcup --cache install
if [ -z "${BOOTSTRAP_HASKELL_GHC_VERSION}" ] ; then
eghcup --cache install
eghcup set
else
eghcup --cache install "${BOOTSTRAP_HASKELL_GHC_VERSION}"
eghcup set "${BOOTSTRAP_HASKELL_GHC_VERSION}"
fi
eghcup set
eghcup --cache install-cabal
if [ -z "${BOOTSTRAP_HASKELL_CABAL_VERSION}" ] ; then
eghcup --cache install-cabal
else
eghcup --cache install-cabal "${BOOTSTRAP_HASKELL_CABAL_VERSION}"
fi
edo cabal new-update
Loading