See https://haskellstack.org for installation and upgrade instructions.
Note: we are releasing a bit earlier than planned due to #3624. As such, not all the binaries have been built yet, but the commonly used 64-bit binaries of Linux static, macOS, and Windows are available.
In addition, the Windows installer and binary has not been codesigned (we are awaiting validation of a new codesign certificate), and you may see a “Windows Defender SmartScreen prevented an unrecognized app from starting” warning when you try to run them. If so, click on More info, and then click on the Run anyway button that appears.
packages
and extra-deps
fields, and a
number of related items. For full details, please see the writeup on
these changes. PR
#3249, see the PR description for a number of related
issues.--install-ghc
flag is now on by default. For
example, if you run stack build
in a directory
requiring a GHC that you do not currently have, Stack will
automatically download and install that GHC. You can explicitly set
install-ghc: false
or pass the flag
--no-install-ghc
to regain the previous behavior.stack ghci
no longer loads modules grouped by
package. This is always an improvement for plain ghci – it makes
loading faster and less noisy. For intero, this has the side-effect
that it will no longer load multiple packages that depend on TH
loading relative paths. TH relative paths will still work when
loading a single package into intero. See #3309ghc-options:
in your stack.yaml
will promote it to a local package,
providing for more consistency with flags and better
reproducibility. See: #849package-indices
setting with Hackage no longer
works with the 00-index.tar.gz
tarball, but must use
the 01-index.tar.gz
file to allow revised packages to
be found.--ghci-options
are now passed
to the end of the invocation of ghci, instead of the middle. This
allows using +RTS
without an accompanying
-RTS
.--ghc-build
,
tinfo6
is now preferred over standard
if
both versions of libtinfo are installedstack build --copy-compiler-tool
, to
allow tools like intero to be installed globally for a particular
compiler. #2643save-hackage-creds
setting. Please see #2159.GHCRTS
environment variable will no longer be
passed through to every program stack runs. Instead, it will only
be passed through commands like exec
,
runghc
, script
, ghci
, etc.
See #3444.ghc-options:
for specific packages will now come
after the options specified for all packages / particular sets of
packages. See #3573.pvp-bounds
feature is no longer fully
functional, due to some issues with the Cabal library’s printer.
See #3550.with-hpack
configuration option specifies an
Hpack executable to use instead of the Hpack bundled with Stack.
Please see #3179.--skip
flagGitSHA1
is now StaticSHA256
and is
implemented using the StaticSize 64 ByteString
for
improved performance. See #3006--git-branch
when upgradingstack upgrade
from a file which is
different from the default executable path (e.g., on POSIX systems,
~/.local/bin/stack
), it will now additionally copy the
new executable over the currently running stack
executable. If permission is denied (such as in
/usr/local/bin/stack
), the user will be prompted to
try again using sudo
. This is intended to assist with
the user experience when the PATH
environment variable
has not been properly configured, see #3232.stack setup
for ghcjs will now install
alex
and happy
if they are not present.
See #3109.stack ghci --only-main
flag, to skip loading
/ importing all but main modules. See the ghci documentation page
for further info.stack ghci
, but this override’s GHC’s
heuristics when they’re broken by our collecting and processing
GHC’s output.ghc-options
field to support
$locals
, $targets
, and
$everything
. See: #3329stack ghci
file
targets are combined with invalid package targets. See: #3342-fprof-auto -fprof-cafs
instead of the deprecated -auto-all -caf-all
. See:
#3360stack upgrade
--help
. See: #3070--cwd DIR
can now be passed to stack
exec
in order to execute the program in a different
directory. See: #3264--ghc-options
to stack
script
to pass options directly to GHC. See: #3454package.yaml
to build Stack itselfignore-revision-mismatch
setting. See:
#3520.--file-watch
by
not watching files for executable, test and benchmark components
that aren’t a target. See: #3483.--terminal-width
command-line option (this works even
on non-POSIX).stack
ghci
will now cause them to be used as -package
args along with package hiding.autoreconf -i
as necessary when
a configure
script is missing. See #3534stack hoogle
correctly generates Hoogle databases.
See: #3362stack --docker-help
is now clearer about –docker
implying system-ghc: true, rather than both –docker and
–no-docker.stack haddock
now includes package names for all
modules in the Haddock index page. See: #2886-d
option. See #3366.stack script
can now handle relative paths to
source files. See #3372.stack --docker
in parallel now correctly
locks the sqlite database. See #3400.stack clean
now works with nix. See #3468.stack build --only-dependencies
no longer builds
local project packages that are depended on. See #3476.--pvp-bounds
is enabled for sdist or upload,
internal dependencies could cause errors when uploaded to hackage.
This is fixed, see #3290stack
setup --upgrade-cabal
would say that Cabal is already the
latest version, when it wasn’t.extra-dep
from a local directory is
not treated as a $locals
for GHC options purposes. See
#3574.Thanks to all our contributors for this release:
Subscribe to our blog via email
Email subscriptions come from our Atom feed and are handled by Blogtrottr. You will only receive notifications of blog posts, and can unsubscribe any time.