Repository navigation
Releases: commercialhaskell/stack
Release list
v2.9.0.1 (release candidate)
Changes since v2.7.5:
Behavior changes:
stack build --coveragewill generate a unified coverage report, even if
there is only one*.tixfile, in case a package has tested the library of
another package that has not tested its own library. See
#5713stack --verboseno longer includes the lengthy raw snapshot layer (rsl) in
the debug output by default. The newstack --[no-]rsl-in-logflag enables or
disables the inclusion of the rsl in the debug output.
Other enhancements:
- Bump to Hpack 0.35.0.
- On Windows, the installer now sets
DisplayVersionin the registry, enabling
tools likewingetto properly read the version number. - Adds flag
--script-no-run-compile(disabled by default) that uses the
--no-runoption withstack script(and forces the--compileoption).
This enables a command likestack --script-no-run-compile Script.hsto
behave likestack scriptbut--no-run --compile -- Script.hs
without having to list all thein the Stack interpreter options
comment inScript.hson the command line. That may help test that scripts
compile in CI (continuous integration). See
#5755 - Fuller help is provided at the command line if a subcommand is missing (for
example,stack lsnow yields the equivalent ofstack ls --help). See
#809 - Add build option
--cabal-verbosity=VERBOSITYto specify the Cabal verbosity
level (the option accepts Cabal's numerical and extended syntax).
See #1369 - Add the possibility of a
shscript to customise fully GHC installation. See
#5585 toolssubcommand added tostack ls, to list stack's installed tools.stack uninstallshows how to uninstall Stack.--ghc-variantacceptsint-nativeas a variant.
Bug fixes:
- Fix
stack clean --full, so that the files to be deleted are not in use. See
#5714 - Fix an inconsistency in the pretty formatting of the output of
stack build --coverage - Fix repeated warning about missing parameters when using
stack new - Include
pantry-0.5.6: Remove operational and mirror keys from bootstrap key
set #53 - Pass any CPP options specified via
cpp-options:in the Cabal file to GHCi
using GHC's-optPflag. See
#5608 - On Unix-like operating systems, respect the
with-gccoption when installing
GHC. See #5609 - Fixed logic in
get_isa()inget-stack.shto exclude systems that don't
have x86 in theiruname -moutput. See
5792. - Fixed output of
stack ls snapshots localon Windows, to behave like that on
Unix-like operating systems. - Fix non-deterministic test failures when executing a test suite for a
multi-project repository with parallelism enabled. See
#5024
v2.7.5
See https://haskellstack.org/ for installation and upgrade instructions.
Changes since v2.7.3:
Behavior changes:
- Cloning git repositories isn't per sub-directory anymore, see
#5411
Other enhancements:
-
stack setupsupports installing GHC for macOS aarch64 (M1) -
stack uploadsupports authentication with a Hackage API key (via
HACKAGE_KEYenvironment variable).
Bug fixes:
- Ensure that
extra-pathworks for case-insensitivePATHs on Windows.
See rio#237 - Fix handling of overwritten
ghcandghc-pkglocations.
#5597 - Fix failure to find package when a dependency is shared between projects.
#5680 stack ghcinow uses package flags instack.yaml
#5434
Thanks to all our contributors for this release:
- Emanuel Borsboom
- HaskellMouse
- Julian Ospald
- kocielnik
- Matt Audesse
- Michael Snoyman
- MikaelUrankar
- Muhammed Zakir
- Natan Lao
- Patryk Kocielnik
- tkaaad97
v2.7.3
See https://haskellstack.org/ for installation and upgrade instructions.
Changes since v2.7.1:
Other enhancements:
stack upgradewill download fromhaskellstack.orgbefore trying
github.com. See
#5288stack upgrademakes less assumptions about archive format. See
#5288- Add a
--no-runflag to thescriptcommand when compiling.
Bug fixes:
- GHC source builds work properly for recent GHC versions again. See
#5528 stack setupalways looks for the unpacked directory name to support
different tar file naming conventions. See
#5545- Bump
pantryversion for better OS support. See
pantry#33 - When building the sanity check for a new GHC install, make sure to clear
GHC_PACKAGE_PATH. - Specifying GHC RTS flags in the
stack.yamlno longer fails with an error.
#5568 stack setupwill look in sandboxed directories for executables, not
relying on `findExecutables. See
GHC issue 20074- Track changes to
setup-configproperly to avoid reconfiguring on every
change. See #5578
Thanks to all our contributors for this release:
- Andreas Källberg
- Artur Gajowy
- Felix Yan
- fwcd
- Ketzacoatl
- Matt Audesse
- Michael Snoyman
- milesfrain
- parsonsmatt
- skforg
v2.7.1
See https://haskellstack.org/ for installation and upgrade instructions.
Changes since v2.5.1.1:
Behavior changes:
-
stack replnow always warns about GHCi problems with loading multiple
packages. It also sets now proper working directory when invoked with
one package. See
#5421 -
custom-setupdependencies are now properly initialized forstack dist.
This makesexplicit-setup-depsno longer required and that option was
removed. See
#4006
Other enhancements:
-
Nix integration now passes
ghcVersion(in addition to existingghc) to
shell-fileas an identifier that can be looked up in a compiler attribute set. -
Nix integration now allows Nix integration if the user is ready in nix-shell.
This gets rid of "In Nix shell but reExecL is False" error. -
stack listis a new command to list package versions in a snapshot.
See #5431 -
Consider GHC 9.0 a tested compiler and remove warnings.
-
custom-preprocessor-extensionsis a new configuration option for allowing
stack to be aware of any custom preprocessors you have added toSetup.hs.
See #3491 -
Added
--candidateflag touploadcommand to upload a package candidate
rather than publishing the package. -
Error output using
--no-interleaved-outputno longer prepends indentating
whitespace. This allows emacs compilation-mode and vim quickfix to locate
and track errors. See
#5523
Bug fixes:
-
stack newnow suppports branches other thanmasteras default for
GitHub repositories. See
#5422 -
Support basic auth in package-indices. See
#5509. -
Add support for parsing
.hi. files from GHC 8.10 and 9.0. See
hi-file-parser#2.
Thanks to all our contributors for this release:
- Aaron Allen
- Alexey Kuleshevich
- Andreas Källberg
- Domen Kožar
- Emanuel Borsboom
- Felix Yan
- Jens Petersen
- Kirill Zaborsky
- Marcin Tolysz
- Matt Audesse
- Matthew Wraith
- Michael Snoyman
- Mike Pilgrem
- Simon Michael
v2.7.0.3 (release candidate)
Release notes:
- Stack's bindists are now built with GHC 8.10.4, and our
stack.yamlhas
moved to lts-17.10. This means Stack can now be built on macOS 11.0 (Big
Sur) without ugly workarounds. GHC 8.8 is now the minimum GHC version
supported for building Stack itself (but this does not effect users of
Stack, which still supports using much older GHC versions).
Changes since v2.7.0.1:
(no changes)
v2.7.0.1 (release candidate)
Changes since v2.5.1.1:
Behavior changes:
-
stack replnow always warns about GHCi problems with loading multiple
packages. It also sets now proper working directory when invoked with
one package. See
#5421 -
custom-setupdependencies are now properly initialized forstack dist.
This makesexplicit-setup-depsno longer required and that option was
removed. See
#4006
Other enhancements:
-
Nix integration now passes
ghcVersion(in addition to existingghc) to
shell-fileas an identifier that can be looked up in a compiler attribute set. -
Nix integration now allows Nix integration if the user is ready in nix-shell.
This gets rid of "In Nix shell but reExecL is False" error. -
stack listis a new command to list package versions in a snapshot.
See #5431 -
Consider GHC 9.0 a tested compiler and remove warnings.
-
custom-preprocessor-extensionsis a new configuration option for allowing
stack to be aware of any custom preprocessors you have added toSetup.hs.
See #3491 -
Added
--candidateflag touploadcommand to upload a package candidate
rather than publishing the package. -
Error output using
--no-interleaved-outputno longer prepends indentating
whitespace. This allows emacs compilation-mode and vim quickfix to locate
and track errors. See
#5523
Bug fixes:
-
stack newnow suppports branches other thanmasteras default for
GitHub repositories. See
#5422 -
Support basic auth in package-indices. See
#5509. -
Add support for parsing
.hi. files from GHC 8.10 and 9.0. See
hi-file-parser#2.
v2.5.1
See https://haskellstack.org/ for installation and upgrade instructions.
Changes since v2.3.3
Major changes:
- Add the
snapshot-location-baseyaml configuration option, which allows to
override the default location of snapshot configuration files. This option
affects how snapshot synonyms (LTS/Nightly) are expanded to URLs by the
pantrylibrary. docker-networkconfiguration key added to override docker--netarg
Behavior changes:
- File watching now takes into account specified targets, old behavior could
be restored using the new flag--watch-all
#5310
Other enhancements:
stack ls dependencies jsonnow includes fieldssha256andsizefor
dependencies oftypearchiveinlocation.
#5280- Build failures now show a hint to scroll up to the corresponding section
#5279 - Customisable output styles (see
stack --helpand the--stack-colors
option, andstack ls stack-colors --help) now includeinfo,debug,
other-level,secondaryandhighlight, used with verbose output.
Bug fixes:
- Fix
stack test --coveragewhen using Cabal 3 stack newnow generates PascalCase'd module name correctly.
#5376- Connection issues to Casa server no longer cause builds to failure. Casa acts
only as an optimizing cache layer, not a critical piece of infrastructure. - Fix modified time busting caches by always calculating sha256 digest during
the build process.
#5125
Thanks to all our contributors for this release:
- Andrea Condoluci
- Andreas Herrmann
- Andres Schmois
- Ariel D. Moya Sequeira
- Brandon Chinn
- Cheah Jer Fei
- DerpyCrabs
- Emanuel Borsboom
- Felix Yan
- Jannik Theiß
- Jens Petersen
- Junji Hashimoto
- Kirill Zaborsky
- Michael Snoyman
- Mihai Maruseac
- Mike Pilgrem
- Niklas Hambüchen
- Ondřej Slámečka
- Piper McCorkle
- Thomas Lopatic
- tomjaguarpaw
v2.5.0.1 (release candidate)
Changes since v2.3.3
Major changes:
- Add the
snapshot-location-baseyaml configuration option, which allows to
override the default location of snapshot configuration files. This option
affects how snapshot synonyms (LTS/Nightly) are expanded to URLs by the
pantrylibrary. docker-networkconfiguration key added to overwrite docker--netarg
Behavior changes:
- File watching now takes into account specified targets, old behavior could
be restored using the new flag--watch-all
#5310
Other enhancements:
stack ls dependencies jsonnow includes fieldssha256andsizefor
dependencies oftypearchiveinlocation.
#5280- Build failures now show a hint to scroll up to the corresponding section
#5279 - Customisable output styles (see
stack --helpand the--stack-colors
option, andstack ls stack-colors --help) now includeinfo,debug,
other-level,secondaryandhighlight, used with verbose output.
Bug fixes:
- Fix
stack test --coveragewhen using Cabal 3 stack newnow generates PascalCase'd module name correctly.
#5376- Connection issues to Casa server no longer cause builds to failure. Casa acts
only as an optimizing cache layer, not a critical piece of infrastructure. - Fix modified time busting caches by always calculating sha256 digest during
the build process.
#5125
v2.3.3
See https://haskellstack.org/ for installation and upgrade instructions.
Changes since v2.3.1
Other enhancements:
- Add the
stack-developer-modeflag
Bug fixes:
- When using the
STACK_YAMLenv var with Docker, make the path absolute. - Fix the problem of
stack repl foo:test:barfailing without a project
build before that. See
#5213 - Fix
stack sdistintroducing unneded sublibrary syntax when using
pvp-bounds. See
#5289
Thanks to all our contributors for this release:
- coord.e
- Dmitry Dzhus
- Emanuel Borsboom
- Kirill Zaborsky
- Michael Snoyman
v2.3.1
See https://haskellstack.org/ for installation and upgrade instructions.
Release notes:
-
We have reduced the number of platforms that we support with binary releases.
The reason behind this is that we've been slowed down in our release process
until now with issues trying to build binaries for less common platforms. In
order to make sure we can address issues more quickly (like supporting new
GHC versions), we're limiting support from the Stack team to:- Linux 64-bit (static)
- macOS
- Windows 64-bit
If others want to provide additional binaries, we will definitely be happy
for the support. But since our CI system is currently able to produce these
three bindists only, that's what we will be providing with the next release. -
Since we no longer have dynamically linked Linux binaries, we are removing
removing the-staticsuffix from the static Linux binaries. If you have
scripts to download the latest stable Linux binary, update them to use
linux-x86_64instead oflinux-x86_64-static(if you are already using the
former, nothing needs to change). For this release, both are supported, but
the next release will no longer have the-staticvariant. -
We are also deprecating the download links at https://stackage.org/stack.
See this page for the current installation instructions:
https://docs.haskellstack.org/en/stable/install_and_upgrade/. -
These are the canonical locations to download the latest stable binaries
from, and will continue to be supported going forward:- Linux 64-bit (static): https://get.haskellstack.org/stable/linux-x86_64.tar.gz
- macOS: https://get.haskellstack.org/stable/osx-x86_64.tar.gz
- Windows 64-bit: https://get.haskellstack.org/stable/windows-x86_64.zip
As always, binaries for specific versions are available from the Github
releases: https://github.com/commercialhaskell/stack/releases.
Changes since v2.1.3.1
Major changes:
-
setup-info-locationsyaml configuration now allows overwriting the default locations ofstack-setup-2.yaml.
#5031
#2983
#2913 -
The
setup-infoconfiguration key now allows overwriting parts of the defaultsetup-info -
The
--setup-info-yamlcommand line flag now may be used in all stack commands such asstack build, and not only instack setup -
The
--setup-info-yamlmay specify multiple locations forstack-setup.yamlfiles. -
The
stack uploadcan read first reads environment Variable$HACKAGE_USERNAMEand$HACKAGE_PASSWORDif they are missing only then asks forusernameorpassword -
Fully remove GHCJS support.
-
Remove the
freezecommand. It has been replaced by lock files.
Behavior changes:
-
Remove the deprecated
--stack-setup-yamlcommand line argument in favor of--setup-info-yaml
#2647 -
We now recommend checking in generated cabal files for repos. When generating lock files for
extra-deps that only includepackage.yamlfiles, a deprecation warning will be generated.
Also, those packages will no longer be included in the generated lock files.
See #5210.
Other enhancements:
-
Add
build-output-timestampsflag in yaml. Setting it to true
prefixes each build log output line with a timestamp. -
Show warning about
local-programs-pathwith spaces on windows
when running scripts. See
#5013 -
Add
ls dependencies jsonwhich will print dependencies as JSON.
ls dependencies --treeis nowls dependencies tree. See
#4424 -
Remove warning for using Stack with GHC 8.8-8.10, and Cabal 3.0-3.2.
-
Allow relative paths in
--setup-info-yamland tool paths
#3394 -
Added the
--only-localsflag. See
#5272
Bug fixes:
-
Upgrade
pantry: module mapping insertions into the database are now atomic.
Previously, if you SIGTERMed at the wrong time while running a script, you
could end up with an inconsistent database state. -
--resolver globaldoesn't retrieve snapshots list from the internet
beause doesn't need it. See #5103 -
Fix using relative links in haddocks output. See
#4971. -
Do not include generated cabal file information in lock files. See
#5045. -
Use proper Hoogle executable path when installed automatically. See
#4905 -
Fix GHC version for batched package unregistration. See
#4951 -
Use Hoogle from the snapshot used and not the latest version. See
#4905 -
Resolve "'stty' is not recognized". See
#4901 -
Fix missing reconfigure check causing errors when a package gets
used in multiple projects. See
#5147
Thanks to all our contributors for this release:
- Adam McCullough
- Akshay Mankar
- Brian Wignall
- Cheah Jer Fei
- Chris Done
- David Baynard
- davit nalchevanidze
- Dino Morelli
- Emanuel Borsboom
- Felix Yan
- flip111
- Flowers Safety
- Fred Miller
- Fyrbll
- gdziadkiewicz
- Good boy
- Hypnoes.Liu
- Iisus
- Iustin Pop
- ivanbakel
- Javier Neira
- Jeff Happily
- jeffhappily
- jneira
- Justin Le
- Kirill Zaborsky
- Leif Metcalf
- Leonhard Markert
- Lokesh Mohanty
- Matt Audesse
- Michael Snoyman
- Mihai Maruseac
- NightRa
- Phil Ruffwind
- qinzhenlong
- Robert Hensing
- Sasha Bogicevic
- Sibi
- Sibi Prabakaran
- Simon Michael
- Steve Mao
- Vlad Ki
- Xia Li-yao