Add support for overriding variables such as `INSTALL_BASE`
I notice global vars such as
INSTALL_BASE="$HOME/.ghcup"
GHC_LOCATION="$INSTALL_BASE/ghc"
BIN_LOCATION="$INSTALL_BASE/bin"
which would be desirable to allow to be customized in a way that survives self-update
; I can think of two common options, either
- have vars such as
INSTALL_BASE
default to set the value of e.g. aGHCUP_INSTALL_BASE
env-var if it's set and non-empty (useful forexport GHCUP_INSTALL_BASE=...
in your .profile script), or - simply add a couple long-opts,
--install-base=
,--ghc-location=
... etc (this however requires using analias
in your .profile scripts if it's supposed to be a persistent setting)