The stack upgrade
command¶
Either:
stack upgrade [--binary-only] [--binary-platform ARG] [--force-download]
[--binary-version ARG] [--github-org ARG] [--github-repo ARG]
or:
stack upgrade
will get a new version of Stack, either from an existing
binary distribution (pass the --binary-only
flag, the default) or from
compiling source code (pass the --source-only
flag). The --binary-only
and
--source-only
flags are alternatives.
When compiling from source code, by default:
- Stack will obtain the source code for the most recent version in the package
index (eg Hackage). Pass the flag
--git
to specify the most recent version from themaster
branch of Stack's repository.