Releases: commercialhaskell/stack
v1.0.0
A Christmas present: we’re calling this version 1.0! This is a minor enhancement and bug fix release, but since Stackage LTS 4 is about to be cut we thought it was time to give Stack a version number that reflects its readiness for production use.
Enhancements:
- Added flag
--profileflag: passed withstack build, it will
enable profiling, and for--benchand--testit will generate a
profiling report by passing+RTS -pto the executable(s). Great
for using likestack build --bench --profile(remember that
enabling profile will slow down your benchmarks by >4x). Runstack build --benchagain to disable the profiling and get proper speeds - Added flag
--traceflag: just like--profile, it enables
profiling, but instead of generating a report for--benchand
--test, prints out a stack trace on exception. Great for using
likestack build --test --trace - Nix: all options can be overriden on command line
#1483 - Nix: build environments (shells) are now pure by default.
- Make verbosity silent by default in script interpreter mode
#1472 - Show a message when resetting git commit fails
#1453 - Improve Unicode handling in project/package names
#1337 - Fix ambiguity between a stack command and a filename to execute (prefer
stacksubcommands)
#1471 - Support multi line interpreter directive comments
#1394 - Handle space separated pids in ghc-pkg dump (for GHC HEAD)
#1509 - Add ghci --no-package-hiding option
#1517 stack newcan download templates from URL
#1466
Bug fixes:
- Nix: stack exec options are passed properly to the stack sub process
#1538 - Nix: specifying a shell-file works in any current working directory
#1547 - Nix: use
--resolverargument - Docker: fix missing image message and '--docker-auto-pull'
- No HTML escaping for "stack new" template params
#1475 - Set permissions for generated .ghci script
#1480 - Restrict commands allowed in interpreter mode
#1504 - stack ghci doesn't see preprocessed files for executables
#1347 - All test suites run even when only one is requested
#1550 - Edge cases in broken templates give odd errors
#1535 - Fix test coverage bug on windows
v0.1.10.1
v0.1.10.0
Release notes:
- The Stack home page is now at haskellstack.org,
which shows the documentation rendered by readthedocs.org. Note: this
has necessitated some changes to the links in the documentation's markdown
source code, so please check the links on the website before submitting a PR
to fix them. - The locations of the
Ubuntu
and
Debian
package repositories have changed to have correct URL semantics according to
Debian's guidelines
#1378. The old
locations will continue to work for some months, but we suggest that you
adjust your/etc/apt/sources.list.d/fpco.listto the new location to avoid
future disruption. - openSUSE and SUSE Linux Enterprise
packages are now available, thanks to @mimi1vx.
Note: there will be some lag before these pick up new versions, as they are
based on Stackage LTS.
Major changes:
- Support for building inside a Nix-shell providing system dependencies
#1285 - Add optional GPG signing on
stack upload --signor with
stack sig sign ...
Other enhancements:
- Print latest applicable version of packages on conflicts
#508 - Support for packages located in Mercurial repositories
#1397 - Only run benchmarks specified as build targets
#1412 - Support git-style executable fall-through (
stack somethingexecutes
stack-somethingif present)
#1433 - GHCi now loads intermediate dependencies
#584 --work-diroption for overriding.stack-work
#1178- Support
detailed-0.9tests
#1429 - Docker: improved POSIX signal proxying to containers
#547
Bug fixes:
- Show absolute paths in error messages in multi-package builds
#1348 - Docker-built binaries and libraries in different path
#911
#1367 - Docker:
--resolverargument didn't effect selected image tag - GHCi: Spaces in filepaths caused module loading issues
#1401 - GHCi: cpp-options in cabal files weren't used
#1419 - Benchmarks couldn't be run independently of eachother
#1412 - Send output of building setup to stderr
#1410
v0.1.8.0
See README for installation and upgrade instructions.
There are now Windows installers available: download them here. In addition, new Fedora 23 packages are available here.
Note that, starting with v0.1.8.0, releases of Stack will always have an even-numbered second-to-last version component. Odd second-to-last version components are reserved for unstable builds.
Major changes:
- GHCJS can now be used with stackage snapshots via the new
compilerfield. - Docker integration works with non-FP Complete generated images
#531
Other enhancements:
- Added an
allow-newerconfig option
#922
#770 - When a Hackage revision invalidates a build plan in a snapshot, trust the
snapshot #770 - Added a
stack config set resolver RESOLVERcommand. Part of work on
#115 stack setupcan now install GHCJS on windows. See
#1145 and
#749stack hpc reportcommand added, which generates reports for HPC tix filesstack ghcinow accepts all the flags accepted bystack build. See
#1186stack ghcibuilds the project before launching GHCi. If the build fails,
optimistically launch GHCi anyway. Usestack ghci --no-buildoption to
disable #1065stack ghcinow detects and warns about various circumstances where it is
liable to fail. See
#1270- Added
require-docker-versionconfiguration option - Packages will now usually be built along with their tests and benchmarks. See
#1166 - Relative
local-bin-pathpaths will be relative to the project's root
directory, not the current working directory.
#1340 stack cleannow takes an optional[PACKAGE]argument for use in
multi-package projects. See
#583- Ignore cabal_macros.h as a dependency
#1195 - Pad timestamps and show local time in --verbose output
#1226 - GHCi: Import all modules after loading them
#995 - Add subcommand aliases:
replforghci, andrunhaskellforrunghc
#1241 - Add typo recommendations for unknown package identifiers
#158 - Add
stack path --local-hpc-rootoption - Overhaul dependencies' haddocks copying
#1231 - Support for extra-package-dbs in 'stack ghci'
#1229 stack newdisallows package names with "words" consisting solely of numbers
#1336stack build --fastturns off optimizations
Bug fixes:
- Fix: Haddocks not copied for dependencies
#1105 - Fix: Global options did not work consistently after subcommand
#519 - Fix: 'stack ghci' doesn't notice that a module got deleted
#1180 - Rebuild when cabal file is changed
- Fix: Paths in GHC warnings not canonicalized, nor those for packages in
subdirectories or outside the project root
#1259 - Fix: unlisted files in tests and benchmarks trigger extraneous second build
#838
v0.1.6.0
See README for installation and upgrade instructions.
Major changes:
- "stack setup" now supports building and booting GHCJS from source tarball.
- On Windows, build directories no longer display "pretty" information
(like x86_64-windows/Cabal-1.22.4.0), but rather a hash of that
content. The reason is to avoid the 260 character path limitation on
Windows. See
#1027 - Rename config files and clarify their purposes #969
~/.stack/stack.yaml-->~/.stack/config.yaml~/.stack/global-->~/.stack/global-project/etc/stack/config-->/etc/stack/config.yaml- Old locations still supported, with deprecation warnings
- New command "stack eval CODE", which evaluates to "stack exec ghc -- -e CODE".
Other enhancements:
- No longer install
giton Windows
#1046. You
can still get this behavior by running the following yourself:
stack exec -- pacman -Sy --noconfirm git. - Typing enter during --file-watch triggers a rebuild #1023
- Use Haddock's
--hyperlinked-source(crosslinked source), if available #1070 - Use Stack-installed GHCs for
stack init --solver#1072 - New experimental
stack querycommand #1087 - By default, stack no longer rebuilds a package due to GHC options changes. This behavior can be tweaked with the
rebuild-ghc-optionssetting. #1089 - By default, ghc-options are applied to all local packages, not just targets. This behavior can be tweaked with the
apply-ghc-optionssetting. #1089 - Docker: download or override location of stack executable to re-run in container #974
- Docker: when Docker Engine is remote, don't run containerized processes as host's UID/GID #194
- Docker:
set-useroption to enable/disable running containerized processes as host's UID/GID #194 - Custom Setup.hs files are now precompiled instead of interpreted. This should be a major performance win for certain edge cases (biggest example: building Cabal itself) while being either neutral or a minor slowdown for more common cases.
stack test --coveragenow also generates a unified coverage report for multiple test-suites / packages. In the unified report, test-suites can contribute to the coverage of other packages.
Bug fixes:
- Ignore stack-built executables named
ghc
#1052 - Fix quoting of output failed command line arguments
- Mark executable-only packages as installed when copied from cache #1043
- Canonicalize temporary directory paths #1047
- Put code page fix inside the build function itself #1066
- Add
explicit-setup-depsoption #1110, and change the default to the old behavior of using any package in the global and snapshot database #1025 - Precompiled cache checks full package IDs on Cabal < 1.22 #1103
- Pass -package-id to ghci #867
- Ignore global packages when copying precompiled packages #1146
v0.1.5.0
See README for installation and upgrade instructions.
Note: the binary tarballs' contents have changed, and they now enclose their contents in a directory, and include documentation. If you have a script that should only extract the stack executable, use something like tar xzf stack-0.1.5.0-x86_64-osx.tar.gz --strip-components=1 stack-0.1.5.0-x86_64-osx/stack.
MinGHC installers have also been updated to include this version of stack (and will continue to be updated for future releases).
Major changes:
- On Windows, we now use a full MSYS2 installation in place of the previous PortableGit. This gives you access to the pacman package manager for more easily installing libraries.
- Support for custom GHC binary distributions #530
ghc-variantoption in stack.yaml to specify the variant (also
--ghc-variantcommand-line option)setup-infoin stack.yaml, to specify where to download custom binary
distributions (also--ghc-bindistcommand-line option)- Note: On systems with libgmp4 (aka
libgmp.so.3), such as CentOS 6, you
may need to re-runstack setupdue to the centos6 GHC bindist being
treated like a variant
- A new
--pvp-boundsflag to the sdist and upload commands allows automatic adding of PVP upper and/or lower bounds to your dependencies
Other enhancements:
- Adapt to upcoming Cabal installed package identifier format change #851
stack setuptakes a--stack-setup-yamlargument--file-watchis more discerning about which files to rebuild for #912stack pathnow supports--global-pkg-dband--ghc-package-path--reconfigureflag #914 #946- Cached data is written with a checksum of its structure #889
- Fully removed
--optimizationsflag - Added
--cabal-verboseflag - Added
--file-watch-pollflag for polling instead of using filesystem events (useful for running tests in a Docker container while modifying code in the host environment. When code is injected into the container via a volume, the container won't propagate filesystem events). - Give a preemptive error message when
-profis given as a GHC option #1015 - Locking is now optional, and will be turned on by setting the
STACK_LOCKenvironment variable totrue#950 - Create default stack.yaml with documentation comments and commented out options #226
- Out of memory warning if Cabal exits with -9 #947
Bug fixes:
- Hacky workaround for optparse-applicative issue with
stack exec --help#806 - Build executables for local extra deps #920
- copyFile can't handle directories #942
- Support for spaces in Haddock interface files fpco/minghc#85
- Temporarily building against a "shadowing" local package? #992
- Fix Setup.exe name for --upgrade-cabal on Windows #1002
- Unlisted dependencies no longer trigger extraneous second build #838
v0.1.4.0
See README for installation and upgrade instructions.
Note: while stack-0.1.4.1 is on Hackage, the only change is to a comment so that stack's haddocks build. Therefore, no new binaries were generated. Functionally, v0.1.4.0 is identical to v0.1.4.1.
Note: we have stopped uploading new versions to the Fedora 20 repository, since that version of Fedora has reached end of life. If you are using Fedora 20, use stack upgrade or download the general Linux binary.
Major changes:
- You now have more control over how GHC versions are matched, e.g. "use exactly this version," "use the specified minor version, but allow patches," or "use the given minor version or any later minor in the given major release." The default has switched from allowing newer later minor versions to a specific minor version allowing patches. For more information, see #736 and #784.
- Support added for compiling with GHCJS
- stack can now reuse prebuilt binaries between snapshots. That means that, if you build package foo in LTS-3.1, that binary version can be reused in LTS-3.2, assuming it uses the same dependencies and flags. #878
Other enhancements:
- Added the
--docker-envargument, to set environment variables in Docker container. - Set locale environment variables to UTF-8 encoding for builds to avoid "commitBuffer: invalid argument" errors from GHC #793
- Enable translitation for encoding on stdout and stderr #824
- By default,
stack upgradeautomatically installs GHC as necessary #797 - Added the
ghc-optionsfield to stack.yaml #796 - Added the
extra-pathfield to stack.yaml - Code page changes on Windows only apply to the build command (and its synonyms), and can be controlled via a command line flag (still defaults to on) #757
- Implicitly add packages to extra-deps when a flag for them is set #807
- Use a precompiled Setup.hs for simple build types #801
- Set --enable-tests and --enable-benchmarks optimistically #805
--only-configureoption added #820- Check for duplicate local package names
- Stop nagging people that call
stack test#845 --file-watchwill ignore files that are in your VCS boring/ignore files #703- Add
--numeric-versionoption
Bug fixes:
stack init --solverfails ifGHC_PACKAGE_PATHis present #860stack solverandstack init --solvercheck for test suite and benchmark dependencies #862- More intelligent logic for setting UTF-8 locale environment variables #856
- Create missing directories for
stack sdist - Don't ignore .cabal files with extra periods #895
- Deprecate unused
--optimizationsflag - Truncated output on slow terminals #413
v0.1.3.1
This is a patch release to fix a bug in v0.1.3.0.
See README for installation and upgrade instructions.
Note: on Windows, this version does some trickery with code pages to work around issues with GHC's output. If you run into any trouble, please report it (see issue #757).
Bug fixes:
- Ignore disabled executables #763
0.1.3.0
See README for installation and upgrade instructions.
Note: on Windows, this version does some trickery with code pages to work around issues with GHC's output. If you run into any trouble, please report it (see issue #757).
Major changes:
- Overhauled target parsing, added
--testand--benchoptions #651- For details, see Build commands Wiki page
- Detect when a module is compiled but not listed in the cabal file (#32)
- A warning is displayed for any modules that should be added to
other-modulesin the .cabal file - These modules are taken into account when determining whether a package needs to be built
- A warning is displayed for any modules that should be added to
- Respect TemplateHaskell addDependentFile dependency changes (#105)
- TH dependent files are taken into account when determining whether a package needs to be built.
Other enhancements:
- Set the
HASKELL_DIST_DIRenvironment variable #524 - Track build status of tests and benchmarks #525
--no-run-tests#517- Targets outside of root dir don't build #366
- Upper limit on number of flag combinations to test #543
- Fuzzy matching support to give better error messages for close version numbers #504
--local-bin-pathglobal option. Use to change where binaries get placed on a--copy-bins#342- Custom snapshots #111
- --force-dirty flag: Force treating all local packages as having dirty files (useful for cases where stack can't detect a file change)
- GHC error messages: display file paths as absolute instead of relative for better editor integration
- Add the
--copy-binsoption #569 - Give warnings on unexpected config keys #48
- Remove Docker
pass-hostoption - Don't require cabal-install to upload #313
- Generate indexes for all deps and all installed snapshot packages #143
- Provide
--resolver globaloption #645- Also supports
--resolver nightly,--resolver lts, and--resolver lts-X
- Also supports
- Make
stack build --flagerror when flag or package is unknown #617 - Preserve file permissions when unpacking sources #666
stack buildetc work outside of a projectlist-dependenciescommand #638--upgrade-cabaloption tostack setup#174--execoption #651--only-dependenciesimplemented correctly #387
Bug fixes:
- Extensions from the
other-extensionsfield no longer enabled by default #449 - Fix: haddock forces rebuild of empty packages #452
- Don't copy over executables excluded by component selection #605
- Fix: stack fails on Windows with git package in stack.yaml and no git binary on path #712
- Fixed GHCi issue: Specifying explicit package versions (#678)
- Fixed GHCi issue: Specifying -odir and -hidir as .stack-work/odir (#529)
- Fixed GHCi issue: Specifying A instead of A.ext for modules (#498)
0.1.2.0
- Add
--pruneflag tostack dot#487 - Add
--[no-]external,--[no-]include-baseflags tostack dot#437 - Add
--ignore-subdirsflag to init command #435 - Handle attempt to use non-existing resolver #436
- Add
--forceflag toinitcommand - exec style commands accept the
--packageoption (see Reddit discussion) stack uploadwithout arguments doesn't do anything #439- Print latest version of packages on conflicts #450
- Flag to avoid rerunning tests that haven't changed #451
- stack can act as a script interpreter (see Script interpreter and Reddit discussion)
- Add the
--file-watchflag to auto-rebuild on file changes #113 - Rename
stack docker exectostack exec --plain - Add the
--skip-msysflag #377 --keep-going, turned on by default for tests and benchmarks #478concurrent-tests: BOOL#492- Use hashes to check file dirtiness #502
- Install correct GHC build on systems with libgmp.so.3 #465
stack upgradechecks version before upgrading #447