Changelog History
Page 4
-
v1.3.2 Changes
๐ Bug fixes:
stack config set
can now be used without a compiler installed #2852.- ๐ง
get-stack.sh
now installs correct binary on ARM for generic linux and raspbian, closing #2856. - ๐ฆ Correct the testing of whether a package database exists by checking
for the
package.cache
file itself instead of the containing directory. - ๐ Revert a change in the previous release which made it impossible to set local extra-dep packages as targets. This was overkill; we really only wanted to disable their test suites, which was already handled by a later patch. #2849
stack new
always treats templates as being UTF-8 encoding, ignoring locale settings on a local machine. See Yesod mailing list discussion
-
v1.3.0 Changes
๐ Release notes:
- For the next stack release after this one, we are planning
changes to our Linux releases, including dropping our Ubuntu,
Debian, CentOS, and Fedora package repositories and switching to
statically linked binaries. See
#2534.
Note that upgrading without a package manager has gotten easier
with new binary upgrade support in
stack upgrade
(see the Major Changes section below for more information). In addition, the get.haskellstack.org script no longer installs from Ubuntu, Debian, CentOS, or Fedora package repositories. Instead it places a generic binary in /usr/local/bin.
Major changes:
Stack will now always use its own GHC installation, even when a suitable GHC installation is available on the PATH. To get the old behaviour, use the
--system-ghc
flag or runstack config set system-ghc --global true
. Docker- and Nix-enabled projects continue to use the GHC installations in their environment by default.NB: Scripts that previously used stack in combination with a system GHC installation should now include a
stack setup
line or use the--install-ghc
flag. #2221๐
stack ghci
now defaults to skipping the build of target packages, because support has been added for invoking "initial build steps", which create autogen files and run preprocessors. The--no-build
flag is now deprecated because it should no longer be necessary. See #1364โฌ๏ธ Stack is now capable of doing binary upgrades instead of always recompiling a new version from source. Running
stack upgrade
will now default to downloading a binary version of Stack from the most recent release, if one is available. Seestack upgrade --help
for more options. #1238
Behavior changes:
Passing
--resolver X
with a Stack command which forces creation of a global project config, will pass resolver X into the initial config. See #2579.Switch the "Run from outside project" messages to debug-level, to avoid spamming users in the normal case of non-project usage
๐ฆ If a remote package is specified (such as a Git repo) without an explicit
extra-dep
setting, a warning is given to the user to provide one explicitly.
Other enhancements:
- ๐
stack haddock
now supports--haddock-internal
. See #2229 - โ Add support for
system-ghc
andinstall-ghc
fields tostack config set
command. - โ Add
ghc-build
option to override autodetected GHC build to use (e.g. gmp4, tinfo6, nopie) on Linux. - 0๏ธโฃ
stack setup
detects systems where gcc enables PIE by default (such as Ubuntu 16.10 and Hardened Gentoo) and adjusts the GHCconfigure
options accordingly. #2542 - Upload to Hackage with HTTP digest instead of HTTP basic.
- ๐ Make
stack list-dependencies
understand all of thestack dot
options too. - โ Add the ability for
stack list-dependencies
to list dependency licenses by passing the--license
flag. - ๐ฆ Dump logs that contain warnings for any local non-dependency packages #2545
- โ Add the
dump-logs
config option and--dump-logs
command line option to get full build output on the console. #426 - โ Add the
--open
option to "stack hpc report" command, causing the report to be opened in the browser. - The
stack config set
command now accepts a--global
flag for suitable fields which causes it to modify the global user configuration (~/.stack/config.yaml
) instead of the project configuration. #2675 - โ Information on the latest available snapshots is now downloaded from S3 instead of stackage.org, increasing reliability in case of stackage.org outages. #2653
stack dot
andstack list-dependencies
now take targets and flags. #1919- ๐ Deprecate
stack setup --stack-setup-yaml
for--setup-info-yaml
based on discussion in #2647. - The
--main-is
flag for GHCI now implies the TARGET, fixing #1845. - ๐
stack ghci
no longer takes all build options, as many weren't useful #2199 - ๐
--no-time-in-log
option, to make verbose logs more diffable #2727 - ๐
--color
option added to override auto-detection of ANSI support #2725 - Missing extra-deps are now warned about, adding a degree of typo detection #1521
- ๐ No longer warns about missing build-tools if they are on the PATH. #2235
- Replace enclosed-exceptions with safe-exceptions. #2768
- ๐ง The install location for GHC and other programs can now be configured with the
local-programs-path
option inconfig.yaml
. #1644 - โ Added option to add nix dependencies as nix GC roots
- ๐ณ Proper pid 1 (init) process for
stack exec
with Docker - ๐ Dump build logs if they contain warnings. #2545
- ๐ณ Docker: redirect stdout of
docker pull
to stderr so that it will not interfere with output of other commands. - ๐ณ Nix & docker can be activated at the same time, in order to run stack in a nix-shell in a container, preferably from an image already containing the nix dependencies in its /nix/store
- ๐ Stack/nix: Dependencies can be added as nix GC roots, so they are not removed
when running
nix-collect-garbage
๐ Bug fixes:
- ๐ Fixed a gnarly bug where programs and package tarballs sometimes have corrupted downloads. See #2657.
- โ Add proper support for non-ASCII characters in file paths for the
sdist
command. See #2549 - ๐ฆ Never treat
extra-dep
local packages as targets. This ensures things like test suites are not run for these packages, and that build output is not hidden due to their presence. - ๐ Fix a resource leak in
sinkProcessStderrStdout
which could affect much of the codebase, in particular copying precompiled packages. #1979 - ๐ณ Docker: ensure that interrupted extraction process does not cause corrupt file when downloading a Docker-compatible Stack executable #2568
- ๐ Fixed running
stack hpc report
on package targets. #2664 - ๐ Fix a long-standing performance regression where stack would parse the .dump-hi files of the library components of local packages twice. #2658
- ๐ Fixed a regression in "stack ghci --no-load", where it would prompt for a main module to load. #2603
- ๐ Build Setup.hs files with the threaded RTS, mirroring the behavior of cabal-install and enabling more complex build systems in those files.
- ๐ Fixed a bug in passing along
--ghc-options
to ghcjs. They were being provided as--ghc-options
to Cabal, when it needs to be--ghcjs-options
. #2714 - ๐ณ Launch Docker from the project root regardless of the working
directory Stack is invoked from. This means paths relative to the project root
(e.g. environment files) can be specified in
stack.yaml
's dockerrun-args
. stack setup --reinstall
now behaves as expected. #2554
- For the next stack release after this one, we are planning
changes to our Linux releases, including dropping our Ubuntu,
Debian, CentOS, and Fedora package repositories and switching to
statically linked binaries. See
#2534.
Note that upgrading without a package manager has gotten easier
with new binary upgrade support in
-
v1.2.0 Changes
๐ Release notes:
On many Un*x systems, Stack can now be installed with a simple one-liner:
wget -qO- https://get.haskellstack.org/ | sh
The fix for #2175 entails that stack must perform a full clone of a large Git repo of Hackage meta-information. The total download size is about 200 MB. Please be aware of this when upgrading your stack installation.
โฌ๏ธ If you use Mac OS X, you may want to delay upgrading to macOS Sierra as there are reports of GHC panics when building some packages (including Stack itself). See #2577
๐ This version of Stack does not build on ARM or PowerPC systems (see store#37). Please stay with version 1.1.2 for now on those architectures. This will be rectified soon!
We are now releasing a statically linked Stack binary for 64-bit Linux. Please try it and let us know if you run into any trouble on your platform.
๐ We are planning some changes to our Linux releases, including dropping our Ubuntu, Debian, CentOS, and Fedora package repositories and switching to statically linked binaries. We would value your feedback in #2534.
Major changes:
- โ Add
stack hoogle
command. #55 - ๐ Support for absolute file path in
url
field ofsetup-info
or--ghc-bindist
- โ Add support for rendering GHCi scripts targeting different GHCi like applications #2457
Behavior changes:
- โ Remove
stack ide start
andstack ide load-targets
commands. #2178 - ๐ Support .buildinfo files in
stack ghci
. #2242 - ๐ Support -ferror-spans syntax in GHC error messages.
- Avoid unpacking ghc to
/tmp
#996 - ๐ง The Linux
gmp4
GHC bindist is no longer considered a full-fledged GHC variant and can no longer be specified using theghc-variant
option, and instead is treated more like a slightly different platform.
Other enhancements:
- ๐ฆ Use the
store
package for binary serialization of most caches. - ๐ณ Only require minor version match for Docker stack exe. This way, we can make patch releases for version bounds and similar build issues without needing to upload new binaries for Docker.
- Stack/Nix: Passes the right ghc derivation as an argument to the
shell.nix
when a customshell.nix
is used See #2243 - Stack/Nix: Sets
LD_LIBRARY_PATH
so packages using C libs for Template Haskell can work (See e.g. this HaskellR issue) - ๐ง Parse CLI arguments and configuration files into less permissive types, improving error messages for bad inputs. #2267
- โ Add the ability to explicitly specify a gcc executable. #593
- Nix: No longer uses LTS mirroring in nixpkgs. Gives to nix-shell a derivation
like
haskell.compiler.ghc801
See #2259 - Perform some subprocesses during setup concurrently, slightly speeding up most commands. #2346
stack setup
no longer unpacks to the system temp dir on posix systems. #996stack setup
detects libtinfo6 and ncurses6 and can download alternate GHC bindists #257 #2302.- ๐ง
stack setup
detects Linux ARMv7 downloads appropriate GHC bindist #2103 - Custom
stack
binaries list dependency versions in output for--version
. See #2222 and #2450. - ๐จ Use a pretty printer to output dependency resolution errors. #1912
- โ Remove the
--os
flag #2227 - โ Add 'netbase' and 'ca-certificates' as dependency for .deb packages. #2293.
- โ Add
stack ide targets
command. - โจ Enhance debug logging with subprocess timings.
- ๐จ Pretty-print YAML parse errors #2374
- Clarify confusing
stack setup
output #2314 - โ Delete
Stack.Types
multimodule to improve build times #2405 - โ Remove spurious newlines in build logs #2418
- ๐ฆ Interpreter: Provide a way to hide implicit packages #1208
- Check executability in exec lookup #2489
๐ Bug fixes:
- ๐ Fix cabal warning about use of a deprecated cabal flag #2350
- ๐ Support most executable extensions on Windows #2225
- Detect resolver change in
stack solver
#2252 - ๐ Fix a bug in docker image creation where the wrong base image was selected #2376
- Ignore special entries when unpacking tarballs #2361
- ๐ Fixes src directory pollution of
style.css
andhighlight.js
with GHC 8's haddock #2429 - ๐ Handle filepaths with spaces in
stack ghci
#2266 - ๐ฆ Apply ghc-options to snapshot packages #2289
- stack sdist: Fix timestamp in tarball #2394
- ๐ Allow global Stack arguments with a script #2316
- ๐ฆ Inconsistency between ToJSON and FromJSON instances of PackageLocation #2412
- Perform Unicode normalization on filepaths #1810
- Solver: always keep ghc wired-in as hard constraints #2453
- ๐ Support OpenBSD's tar where possible, require GNU tar for xz support #2283
- ๐ Fix using --coverage with Cabal-1.24 #2424
- ๐ When marking exe installed, remove old version #2373
- Stop truncating all-cabal-hashes git repo #2175
- ๐ Handle non-ASCII filenames on Windows #2491
- ๐ฆ Avoid using multiple versions of a package in script interpreter by passing package-id to ghc/runghc #1957
- Only pre-load compiler version when using nix integration #2459
- ๐ Solver: parse cabal errors also on Windows #2502
- ๐ Allow exec and ghci commands in interpreter mode.
Scripts can now automatically open in the repl by using
exec ghci
instead ofrunghc
in the shebang command. #2510 - ๐ฆ Now consider a package to be dirty when an extra-source-file is changed. See #2040
-
v1.1.2 Changes
๐ Release notes:
- Official FreeBSD binaries are now available #1253.
Major changes:
- Extensible custom snapshots implemented. These allow you to define snapshots ๐ which extend other snapshots. See #863. Local file custom โก๏ธ snapshots can now be safely updated without changing their name. Remote custom snapshots should still be treated as immutable.
Behavior changes:
- ๐
stack path --compiler
was added in the last release, to yield a path to the compiler. Unfortunately,--compiler
is a global option that is useful to use withstack path
. The same functionality is now provided bystack path --compiler-exe
. See #2123 - ๐ฆ For packages specified in terms of a git or hg repo, the hash used in the location has changed. This means that existing downloads from older stack versions won't be used. This is a side-effect of the fix to #2133
- โฌ๏ธ
stack upgrade
no longer pays attention to local stack.yaml files, just the global config and CLI options. #1392 stack ghci
now uses:add
instead of:load
, making it potentially work better with user scripts. See #1888
Other enhancements:
- Grab Cabal files via Git SHA to avoid regressions from Hackage revisions #2070
- ๐ Custom snapshots now support
ghc-options
. - ๐ Package git repos are now re-used rather than re-cloned. See #1620
- ๐
DESTDIR
is filtered from environment when installing GHC. See #1460 - ๐
stack haddock
now supports--hadock-arguments
. See #2144 - Signing: warn if GPG_TTY is not set as per
man gpg-agent
๐ Bug fixes:
- ๐ Now ignore project config when doing
stack init
orstack new
. See #2110 - ๐ Packages specified by git repo can now have submodules. See #2133
- ๐ Fix of hackage index fetch retry. See re-opening of #1418
- ๐ HPack now picks up changes to filesystem other than package.yaml. See #2051
- ๐ "stack solver" no longer suggests --omit-packages. See #2031
- ๐ Fixed an issue with building Cabal's Setup.hs. See #1356
- ๐ Package dirtiness now pays attention to deleted files. See #1841
- ๐
stack ghci
now usesextra-lib-dirs
andextra-include-dirs
. See #1656 - Relative paths outside of source dir added via
qAddDependentFile
are now checked for dirtiness. See #1982 - ๐จ Signing: always use
--with-fingerprints
-
v1.1.0 Changes
๐ Release notes:
- โ Added Ubuntu 16.04 LTS (xenial) Apt repo.
- No longer uploading new versions to Fedora 21 repo.
Behavior changes:
- ๐ Snapshot packages are no longer built with executable profiling. See #1179.
stack init
now ignores symlinks when searching for cabal files. It also now ignores any directory that begins with.
(as well asdist
dirs) - before it would only ignore.git
,.stack-work
, anddist
.- The stack executable is no longer built with
-rtsopts
. Before, when-rtsopts
was enabled, stack would process+RTS
options even when intended for some other program, such as when used withstack exec -- prog +RTS
. See #2022. - ๐ The
stack path --ghc-paths
option is deprecated and renamed to--programs
.--compiler
is added, which points directly at the compiler used in the current project.--compiler-bin
points to the compiler's bin dir. - For consistency with the
$STACK_ROOT
environment variable, thestack path --global-stack-root
flag and theglobal-stack-root
field in the output ofstack path
are being deprecated and replaced with thestack-root
flag and output field. Additionally, the stack root can now be specified via the--stack-root
command-line flag. See #1148. - ๐
stack sig
GPG-related sub-commands were removed (folded intoupload
andsdist
) - ๐ฆ GPG signing of packages while uploading to Hackage is now the default. Use
upload --no-signature
if you would rather not contribute your package signature. If you don't yet have a GPG keyset, read this blog post on GPG keys. We can add a stack.yaml config setting to disable signing if some people desire it. We hope that people will sign. Later we will be adding GPG signature verification options. - ๐
stack build pkg-1.2.3
will now build even if the snapshot has a different package version - it is treated as an extra-dep.stack build local-pkg-1.2.3
is an error even if the version number matches the local package #2028. - ๐ Having a
nix:
section no longer implies enabling nix build. This allows the user to globally configure whether nix is used (unless the project overrides the default explicitly). See #1924. - โ Remove deprecated valid-wanted field.
- ๐ณ Docker: mount home directory in container #1949.
- ๐ Deprecate
--local-bin-path
instead--local-bin
. stack image
: allow absolute source paths foradd
.
Other enhancements:
- ๐ฆ
stack haddock --open [PACKAGE]
opens the local haddocks in the browser. - ๐ Fix too much rebuilding when enabling/disabling profiling flags.
- ๐
stack build pkg-1.0
will now buildpkg-1.0
even if the snapshot specifies a different version (it introduces a temporary extra-dep) - ๐ Experimental support for
--split-objs
added #1284. - ๐ฆ
git
packages with submodules are supported by passing the--recursive
flag togit clone
. - When using hpack, only regenerate cabal files when hpack files change.
- hpack files can now be used in templates
stack ghci
now runs ghci as a separate process #1306- ๐ฆ Retry when downloading snapshots and package indices
- ๐ Many build options are configurable now in
stack.yaml
:build: library-profiling: true executable-profiling: true haddock: true haddock-deps: true copy-bins: true prefetch: true force-dirty: true keep-going: true test: true test-arguments: rerun-tests: true additional-args: ['-fprof'] coverage: true no-run-tests: true bench: true benchmark-opts: benchmark-arguments: -O2 no-run-benchmarks: true reconfigure: true cabal-verbose: true
- ๐ A number of URLs are now configurable, useful for firewalls. See #1794.
- Suggest causes when executables are missing.
- ๐ Allow
--omit-packages
even without--solver
. - ๐ Improve the generated stack.yaml.
- ๐ Improve ghci results after :load Main module collision with main file path.
- Only load the hackage index if necessary #1883, #1892.
- ๐ฆ init: allow local packages to be deps of deps #1965.
- ๐จ Always use full fingerprints from GPG #1952.
- 0๏ธโฃ Default to using
gpg2
and fall back togpg
#1976. - โ Add a flag for --verbosity silent.
- โ Add
haddock --open
flag #1396.
๐ Bug fixes:
- ๐ฆ Package tarballs would fail to unpack. #1884.
- ๐ Fixed errant warnings about missing modules, after deleted and removed from cabal file #921 #1805.
- ๐ฆ Now considers a package to dirty when the hpack file is changed #1819.
- ๐ Nix: cancelling a stack build now exits properly rather than dropping into a nix-shell #1778.
- ๐ง
allow-newer: true
now causes--exact-configuration
to be passed to Cabal. See #1579. - ๐ฆ
stack solver
no longer fails withInvalidRelFile
for relative package paths including..
. See #1954. - ๐ Ignore emacs lock files when finding .cabal #1897.
- ๐ Use lenient UTF-8 decode for build output #1945.
- โก๏ธ Clear index cache whenever index updated #1962.
- ๐ Fix: Building a container image drops a .stack-work dir in the current working (sub)directory #1975.
- ๐ Fix: Rebuilding when disabling profiling #2023.
-
v1.0.4 Changes
Major changes:
- Some notable changes in
stack init
:- Overall it should now be able to initialize almost all existing cabal packages out of the box as long as the package itself is consistently defined.
- Choose the best possible snapshot and add extra dependencies on top of a snapshot resolver rather than a compiler resolver - #1583
- Automatically omit a package (
--omit-packages
) when it is compiler incompatible or when there are packages with conflicting dependency requirements - #1674. - Some more changes for a better user experience. Please refer to the doc guide for details.
- โ Add support for hpack, alternative package description format #1679
Other enhancements:
- ๐ณ Docker: pass ~/.ssh and SSH auth socket into container, so that git repos work #1358.
- ๐ณ Docker: strip suffix from docker --version. #1653
- ๐ณ Docker: pass USER and PWD environment variables into container.
- โ
On each run, stack will test the stack root directory (~/.stack), and the
project and package work directories (.stack-work) for whether they are
owned by the current user and abort if they are not. This precaution can
be disabled with the
--allow-different-user
flag orallow-different-user
option in the global config (~/.stack/config.yaml). #471 - โ Added
stack clean --full
option for full working dir cleanup. - ๐ YAML config: support Zip archives.
- ๐ Redownload build plan if parsing fails #1702.
- Give mustache templates access to a 'year' tag #1716.
- Have "stack ghci" warn about module name aliasing.
- โ Add "stack ghci --load-local-deps".
- ๐ Build Setup.hs with -rtsopts #1687.
stack init
accepts a list of directories.- โ Add flag infos to DependencyPlanFailures (for better error output in case of flags) #713
stack new --bare
complains for overwrites, and add--force
option #1597.
๐ Bug fixes:
- ๐ฆ Previously,
stack ghci
would fail withcannot satisfy -package-id
when the implicit build step changes the package key of some dependency. - ๐ Fix: Building with ghcjs: "ghc-pkg: Prelude.chr: bad argument: 2980338" #1665.
- ๐ Fix running test / bench with
--profile
/--trace
. - ๐ Fix: build progress counter is no longer visible #1685.
- ๐ Use "-RTS" w/ profiling to allow extra args #1772.
- ๐ Fix withUnpackedTarball7z to find name of srcDir after unpacking
(fixes
stack setup
fails for ghcjs project on windows) #1774. - โ Add space before auto-generated bench opts (makes profiling options work uniformly for applications and benchmark suites) #1771.
- ๐ Don't try to find plugin if it resembles flag.
- ๐ฆ Setup.hs changes cause package dirtiness #1711.
- Send "stack templates" output to stdout #1792.
- Some notable changes in
-
v1.0.4.3 Changes
๐ Bug fixes:
- ๐ณ Don't delete contents of ~/.ssh when using
stack clean --full
with Docker enabled #2000
- ๐ณ Don't delete contents of ~/.ssh when using
-
v1.0.4.2 Changes
๐ Build with path-io-1.0.0. There are no changes in behaviour from 1.0.4, ๐ so no binaries are released for this version.
-
v1.0.4.1 Changes
๐ Fixes build with aeson-0.11.0.0. There are no changes in behaviour from 1.0.4, ๐ so no binaries are released for this version.
-
v1.0.2 Changes
๐ Release notes:
- ๐ง Arch Linux: Stack has been adopted into the official community repository, so we will no longer be updating the AUR with new versions. See the install/upgrade guide for current download instructions.
Major changes:
stack init
andsolver
overhaul #1583
Other enhancements:
- Disable locale/codepage hacks when GHC >=7.10.3 #1552
- ๐ Specify multiple images to build for
stack image container
docs - Specify which executables to include in images for
stack image container
docs - ๐ณ Docker: pass supplementary groups and umask into container
- If git fetch fails wipe the directory and try again from scratch #1418
- Warn if newly installed executables won't be available on the PATH #1362
- stack.yaml: for
stack image container
, specify multiple images to generate, and which executables should be added to those images - GHCI: add interactive Main selection #1068
- Care less about the particular name of a GHCJS sdist folder #1622
- Unified Enable/disable help messaging #1613
๐ Bug fixes:
- ๐ณ Don't share precompiled packages between GHC/platform variants and Docker #1551
- Properly redownload corrupted downloads with the correct file size. Mailing list discussion
- โ Gracefully handle invalid paths in error/warning messages #1561
- Nix: select the correct GHC version corresponding to the snapshot
even when an abstract resolver is passed via
--resolver
on the command-line. #1641 - ๐ Fix: Stack does not allow using an external package from ghci #1557
- Disable ambiguous global '--resolver' option for 'stack init' #1531
- Obey
--no-nix
flag - ๐ Fix: GHCJS Execute.hs: Non-exhaustive patterns in lambda #1591
- Send file-watch and sticky logger messages to stderr #1302 #1635
- ๐ Use globaldb path for querying Cabal version #1647