All Versions
56
Latest Version
Avg Release Cycle
91 days
Latest Release
-

Changelog History
Page 2

  • v2.1.3 Changes

    July 13, 2019

    ⬆️ See https://haskellstack.org/ for installation and upgrade instructions.

    πŸ”„ Changes since v2.1.1

    Behavior changes:

    Disable WAL mode for SQLite3 databases, to improve compatibility with
    πŸ‘€ some platforms and filesystems. See
    #4876.

    πŸ”’ By default, do not perform expiry checks in Hackage Security. See
    #4928.

    Other enhancements:

    βœ… Do not rerun expected test failures. This is mostly a change that
    will only affect the Stackage Curator use case, but there is now an
    βž• additional message letting the user know when a previously-failed
    βœ… test case is being rerun.

    πŸ”§ Move configure information for local packages back to .stack-work to
    πŸ‘Œ improve caching. See
    #4893.

    πŸ› Bug fixes:

    πŸ›  Fix to allow dependencies on specific versions of local git repositories. See
    #4862

    πŸ‘ Allow Stack commands to be run in Nix mode without having a project file
    πŸ‘€ available. See
    #4854.

    βœ‚ Removes dependency on gnu-tar for OSX and Linux environment. The
    🏁 --force-local option was required only for windows environment.

    Properly wait for the tar subprocess to complete before returning, thereby
    πŸ‘€ avoiding a SIGTERM screwing up GHC installation. See
    #4888.

    πŸ”’ Use package complete locations from lock files when resolving dependencies
    πŸ‘€ in extra-deps. See
    #4887.

    Set the HASKELL_DIST_DIR environment to a proper package dist
    βœ… directory so doctest is able to load modules autogenerated by Cabal.

    πŸ”¦ Expose package library when running tests.

    πŸ›  Fix support for non-ASCII module names. See
    4938

    Other changes:

    • πŸ“¦ Rename pantry-tmp package back to pantry, now that we have gained
      βœ… maintainership (which had been used by someone else for a candidate-only test
      πŸ†“ that made it look like the name was free but prevented uploading a real
      πŸ“¦ package).

    πŸš€ Thanks to all our contributors for this release:

    • Alan Malloy
    • Alexander
    • Emanuel Borsboom
    • Kirill Zaborsky
    • Matt Audesse
    • Michael Snoyman
    • Mihai Maruseac
    • Sibi Prabakaran
  • v2.1.3.1 Changes

    πŸš€ Hackage-only release:

    • πŸ‘Œ Support persistent-template-2.7.x
    • πŸ‘Œ Support rio-0.1.11.0
    • βž• Add stack.yaml back to hackage sdist, and add snapshot.yaml
  • v2.1.1 Changes

    June 13, 2019

    πŸš€ The Stack 2 release represents a series of significant changes to how Stack works internally. For the vast majority of cases, these changes are backwards compatible, in that existing projects will continue to build in the same way with Stack 2 as they did with Stack 1. The large version bump is due to the fundamental internal changes to cache handling, database storage (using SQLite in place of binary files), implicit snapshots (which greatly improve the precompiled cache), and moving to Pantry. We have also removed some less used features, as listed in the release notes below.

    ⬆️ See https://haskellstack.org/ for installation and upgrade instructions.

    πŸ”„ Changes since v1.9.3

    Major changes:

    • πŸ“¦ Switch over to pantry for managing packages. This is a major change
      to Stack's internals, and affects user-visible behavior in a few
      places. Some highlights:
      • Drop support for multiple package indices and legacy
        πŸ’… 00-index.tar style indices. See
        #4137.
      • Support for archives and repos in the packages section has
        🚚 been removed. Instead, you must use extra-deps for such
        πŸ“¦ dependencies. packages now only supports local filepaths.
      • Add support for Git repositories containing (recursive) submodules.
      • Addition of new configuration options for specifying a "pantry
        πŸ— tree" key, which provides more reproducibility around builds,
        πŸ“¦ and (in the future) will be used for more efficient package
        πŸ“¦ content downloads. You can also specify package name and version
        πŸ“œ for more efficient config parsing.
        * NOTE The new stack freeze command provides support
        for automatically generating this additional
        information.
      • Package contents and metadata are stored in an SQLite database
        in place of files on the filesystem. The pantry library can be
        πŸ‘‰ used for interacting with these contents.
      • Internally, Stack has changed many datatypes, including moving
        to Cabal's definition of many data types. As a result of such
        πŸ”„ changes, existing cache files will in general be invalidated,
        resulting in Stack needing to rebuild many previously cached
        πŸ— builds in the new version. Sorry :(.
      • A new command, stack freeze has been added which outputs
        πŸ“Œ project and snapshot definitions with dependencies pinned to
        their exact versions.
      • The ignore-revision-mismatch setting is no longer needed, and
        🚚 has been removed.
      • Overriding GHC boot packages results in any other GHC boot
        πŸ“¦ packages depending on it being no longer available as a dependency,
        πŸ‘€ such packages need to be added explicitly when needed. See
        [#4510] (#4510).
      • Cabal solver integration was not updated to support newer
        🚚 cabal-install versions so stack solver command was removed as
        well as a related option --solver from stack new and
        stack init.
    • ⬆️ Upgrade to Cabal 2.4
      • Note that, in this process, the behavior of file globbing has
        been modified to match that of Cabal. In particular, this means
        that for Cabal spec versions less than 2.4, *.txt will
        match foo.txt, but not foo.2.txt.
    • βœ‚ Remove the stack image command. With the advent of Docker multistage
      πŸ— builds, this functionality is no longer useful. For an example, please see
      πŸ— Building Haskell Apps with
      πŸ— Docker
      .
    • πŸ‘Œ Support building GHC from source (experimental)
      • Stack now supports building and installing GHC from source. The built GHC
        is uniquely identified by a commit id and an Hadrian "flavour" (Hadrian is
        πŸ‘· the newer GHC build system), hence compiler can be set to use a GHC
        built from source with ghc-git-COMMIT-FLAVOUR
    • πŸ”§ stack.yaml now supports a configure-options, which are passed directly to
      πŸ— the configure step in the Cabal build process. See
      #1438
    • βœ‚ Remove support for building GHCJS itself. Future releases of Stack
      🚚 may remove GHCJS support entirely.
    • πŸ‘Œ Support for lock files for pinning exact project dependency versions

    Behavior changes:

    • πŸ‘€ stack.yaml now supports snapshot: a synonym for resolver. See
      #4256
    • stack script now passes -i -idir in to the ghc
      invocation. This makes it so that the script can import local
      πŸ›  modules, and fixes an issue where .hs files in the current
      πŸ‘€ directory could affect interpretation of the script. See
      #4538
    • When using stack script, custom snapshot files will be resolved
      relative to the directory containing the script.
    • βœ‚ Remove the deprecated --upgrade-cabal flag to stack setup.
    • πŸ‘Œ Support the drop-packages field in stack.yaml
    • βœ‚ Remove the GPG signing code during uploads. The GPG signatures have
      never been used yet, and there are no plans to implement signature
      verification.
    • βœ‚ Remove the --plain option for the exec family of commands
    • πŸ”§ Always use the --exact-configuration Cabal configuration option when
      πŸ— building (should mostly be a non-user-visible enhancement).
    • πŸ‘ No longer supports Cabal versions older than 1.19.2. This means
      projects using snapshots earlier than lts-3.0 or
      πŸ— nightly-2015-05-05 will no longer build.
    • βœ‚ Remove the stack docker cleanup command. Docker itself now has
      🐳 docker image prune
      and
      🐳 docker container prune,
      which you can use instead.
    • πŸ‘€ Interleaved output is now turned on by default, see
      #4702. In
      βž• addition, the packagename> prefix is no longer included in
      πŸ— interelaved mode when only building a single target.
    • 0️⃣ The -fhide-source-paths GHC option is now enabled by default and
      πŸ”§ can be disabled via the hide-source-paths configuration option in
      πŸ‘€ stack.yaml. See #3784
    • πŸ“¦ Stack will reconfigure a package if you modify your PATH environment
      πŸ‘€ variable. See
      #3138.
    • β†ͺ For GHC 8.4 and later, disable the "shadowed dependencies" workaround. This
      πŸ‘€ means that Stack will no longer have to force reconfigures as often. See
      #3554.
    • πŸ”’ When building a package, Stack takes a lock on the dist directory in
      πŸ‘‰ use to avoid multiple runs of Stack from trampling each others'
      πŸ‘€ files. See
      #2730.
    • Stack will check occassionally if there is a new version available and prompt
      ⬆️ the user to upgrade. This will not incur any additional network traffic, as
      ⚑️ it will piggy-back on the existing Hackage index updates. You can set
      ⬆️ recommend-stack-upgrade: false to bypass this. See
      #1681.
    • 🚚 stack list-dependencies has been removed in favour of stack ls dependencies.
    • πŸ‘€ The new default for --docker-auto-pull is enabled. See
      #3332.

    Other enhancements:

    • πŸ‘Œ Support MX Linux in get-stack.sh. Fixes
      #4769.
    • πŸ“¦ Defer loading up of files for local packages. This allows us to get
      plan construction errors much faster, and avoid some unnecessary
      πŸ— work when only building a subset of packages. This is especially
      πŸ‘‰ useful for the curator use case.
    • Existing global option --color=WHEN is now also available as a
      πŸ”§ non-project-specific yaml configuration parameter color:.
    • Adopt the standard proposed at http://no-color.org/, that color should not be
      βž• added by default if the NO_COLOR environment variable is present.
    • πŸ†• New command stack ls stack-colors lists the styles and the associated 'ANSI'
      πŸ‘€ control character sequences that stack uses to color some of its output. See
      stack ls stack-colors --help for more information.
    • πŸ†• New global option --stack-colors=STYLES, also available as a
      πŸ”§ non-project-specific yaml configuration parameter, allows a stack user to
      πŸ’… redefine the default styles that stack uses to color some of its output. See
      stack --help for more information.
    • British English spelling of 'color' (colour) accepted as an alias for
      πŸ’» --color, --stack-colors, stack ls stack-colors at the command line and
      πŸ”§ for color: and stack-colors: in yaml configuration files.
    • πŸ†• New build option --ddump-dir. (See
      #4225)
    • πŸ“œ Stack parses and respects the preferred-versions information from
      πŸ“¦ Hackage for choosing latest version of a package in some cases,
      πŸ“¦ e.g. stack unpack packagename.
    • The components output in the The main module to load is ambiguous message
      πŸ“¦ now include package names so they can be more easily copy-pasted.
    • πŸ‘€ Git repos are shared across multiple projects. See
      #3551
    • 0️⃣ Use en_US.UTF-8 locale by default in pure Nix mode so programs won't
      crash because of Unicode in their output
      #4095
    • βž• Add --tree to ls dependencies to list dependencies as tree.
      #4101
    • βž• Add --pedantic to ghci to run with -Wall and -Werror
      #4463
    • βž• Add --cabal-files flag to stack ide targets command.
    • βž• Add --stdout flag to all stack ide subcommands.
    • πŸ“¦ Use batches when unregistering packages with ghc-pkg.
      πŸ‘€ (See #2662)
    • 🏁 get-stack script now works on Windows CI machines of Appveyor,
      πŸ‘€ Travis and Azure Pipelines. See
      #4535/
    • πŸ‘‰ Show snapshot being used when stack ghci is invoked outside of a project
      πŸ‘€ directory. See
      #3651
    • The script interpreter now accepts a --extra-dep flag for adding
      πŸ“¦ packages not present in the snapshot. Currently, this only works
      πŸ“¦ with packages from Hackage, not Git repos or archives.
    • ⚑️ When using the script interpreter with --optimize or --compile,
      Stack will perform an optimization of checking whether a newer
      executable exists, making reruns significantly faster. There's a
      downside to this, however: if you have a multifile script, and
      πŸ”„ change one of the dependency modules, Stack will not automatically
      detect and recompile.
    • stack clean will delete the entire .stack-work/dist directory,
      πŸ‘€ not just the relevant subdirectory for the current GHC version. See
      #4480.
    • βž• Add stack purge as a shortcut for stack clean --full. See
      #3863.
    • Both stack dot and stack ls dependencies accept a
      πŸ‘€ --global-hints flag to bypass the need for an installed GHC. See
      #4390.
    • βž• Add the stack config env command for getting shell script environment
      πŸ‘€ variables. See #620.
    • 🏁 Less verbose output from stack setup on Windows. See
      #1212.
    • βž• Add an optional ignore-expiry flag to the hackage-security
      section of the ~/.stack/config.yaml. It allows to disable timestamp
      expiration verification just like cabal --ignore-expiry does.
      0️⃣ The flag is not enabled by default so that the default functionality
      is not changed.
    • 0️⃣ Include default values for most command line flags in the --help
      πŸ‘€ output. See
      #893.
    • Set the GHC_ENVIRONMENT environment variable to specify dependency
      πŸ“¦ packages explicitly when running test. This is done to prevent
      βœ… ambiguous module name errors in doctest tests.
    • 🏁 get-stack script now works on Windows CI machines of Appveyor,
      πŸ‘€ Travis and Azure Pipelines. See
      #4535
    • 🐳 Warn when a Docker image does not include a PATH environment
      πŸ‘€ variable. See
      #2472
    • When using system-ghc: true, Stack will now find the appropriate GHC
      installation based on the version suffix, allowing you to more easily switch
      πŸ‘€ between various system-installed GHCs. See
      #2433.
    • πŸ‘ stack init will now support create a stack.yaml file without any local
      πŸ‘€ packages. See #2465
    • Store caches in SQLite database instead of files.
    • 🐳 No longer use "global" Docker image database (docker.db).
    • πŸ‘€ User config files are respected for the script command. See
      #3705,
      #3887.
    • Set the GHC_ENVIRONMENT environment variable to - to tell GHC to
      ignore any such files when GHC is new enough (>= 8.4.4), otherwise
      simply unset the variable. This allows Stack to have control of
      πŸ“¦ package databases when running commands like stack exec ghci, even
      πŸ— in the presence of implicit environment files created by cabal new-build. See
      #4706.
    • πŸ‘‰ Use a database cache table to speed up discovery of installed GHCs
    • πŸ‘€ You can specify multiple --test-arguments options. See
      #2226
    • 🏁 Windows terminal width detection is now done. See
      #3588
    • 🏁 On Windows, informs users if the 'programs' path contains a space character
      and further warns users if that path does not have an alternative short
      πŸ”§ ('8 dot 3') name, referencing the local-programs-path configuration option.
      πŸ‘€ See #4726
    • βž• Add --docker-mount-mode option to set the Docker volume mount mode
      🐎 for performance tuning on macOS.

    πŸ› Bug fixes:

    • Ignore duplicate files for a single module when a Haskell module was
      πŸ‘€ generated from a preprocessor file. See
      #4076.
    • Only track down components in current directory if there are no
      hs-source-dirs found. This eliminates a number of false-positive
      ⚠ warnings, similar to
      #4076.
    • πŸ– Handle a change in GHC's hi-dump format around addDependentFile,
      πŸ‘€ which now includes a hash. See
      yesodweb/yesod#1551
    • πŸ›  Fix subdirs for git repos in extra-deps to match whole directory names.
      πŸ‘€ Also fixes for subdirs: .. See
      #4292
    • πŸ›  Fix for git packages to update submodules to the correct state. See
      #4314
    • βž• Add --cabal-files flag to stack ide targets command.
    • Don't download ghc when using stack clean.
    • πŸ‘Œ Support loading in GHCi definitions from symlinked C files. Without this
      patch, Stack will try to find object files in the directory pointed to
      by symlinks, while GCC will produce the object files in the original
      πŸ‘€ directory. See
      #4402
    • πŸ›  Fix handling of GitHub and URL templates on Windows. See
      commercialhaskell/stack#4394
    • πŸ›  Fix --file-watch not responding to file modifications when running
      πŸ‘€ inside docker on Mac. See
      #4506
    • Using --ghc-options with stack script --compile now works.
    • βœ… Ensure the detailed-0.9 type tests work.
      πŸ‘€ See #4453.
    • πŸ‘€ Extra include and lib dirs are now order-dependent. See
      #4527.
    • πŸ— Apply GHC options when building a Setup.hs file. See
      #4526.
    • Stack handles ABI changes in FreeBSD 12 by differentiating that version from
      previous.
    • Help text for the templates subcommand now reflects behaviour in stack 1.9
      β€” that it downloads and shows a help file, rather than listing available
      templates.
    • πŸ›  Fix detection of aarch64 platform (this broke when we upgraded to a newer
      Cabal version).
    • πŸ‘€ Docker: fix detecting and pulling missing images with --docker-auto-pull, see
      #4598
    • πŸ‘€ Hackage credentials are not world-readable. See
      #2159.
    • πŸ‘€ Warnings are dumped from logs even when color is enabled. See
      #2997
    • πŸ‘€ stack init will now work for cabal files with sublibraries. See
      #4408
    • πŸ— When the Cabal spec version is newer than the global Cabal version, build
      πŸ‘€ against the snapshot's Cabal library. See
      #4488
    • 🐳 Docker: fix detection of expected subprocess failures. This fixes
      downloading a compatible stack executable when the host stack is not
      🐧 compatible with the Docker image (on Linux), and doesn't show an unnecessary
      extra error when the in-container re-exec'ed stack exits with failure.
    • πŸ“œ The stack ghci command's --ghc-options flag now parses multiple options.
      πŸ‘€ See #3315.

    πŸš€ Thanks to all our contributors for this release:

    • Adam Bergmark
    • Akshay Mankar
    • Aleksey Kozin
    • ALeX Kazik
    • Alexey Kozin
    • Alexey Kuleshevich
    • Anders Kaseorg
    • Anders Kiel Hovgaard
    • Artyom Kazak
    • Bastian Krol
    • BjΓΆrn Gohla
    • Brad Neimann
    • Brandon Chinn
    • Colin Woodbury
    • Cthulhu.Den
    • dadepo
    • Daniel GrΓΆber
    • David Baynard
    • David Spies
    • David Vollbracht
    • dbaynard
    • Emanuel Borsboom
    • favonia
    • flip111
    • Florjan Bartol
    • Gleb Popov
    • Hussein Ait-Lahcen
    • Isumi Feng
    • Janfel
    • Jurijs Oniscuks
    • Kayla Ngan
    • Kirill Zaborsky
    • Magicloud
    • Matt Audesse
    • Mauricio Fierro
    • Michael Sloan
    • Michael Snoyman
    • Mihai Maruseac
    • Mike Pilgrem
    • Neil Mitchell
    • NeonGraal
    • Niklas HambΓΌchen
    • penteract
    • Phil de Joux
    • Raghu Kaippully
    • Sibi
    • Sibi Prabakaran
    • Simon Hengel
    • skapazzo
    • Sylvain HENRY
    • Sylvain Henry
    • Taekyung
    • Timothy Clem
    • Tom Sydney Kerckhove
    • Valery V. Vorotyntsev
    • Vance Palacio
    • waddlaw
    • 欧阳泽
  • v2.1.1.1 Changes

    πŸš€ Hackage-only release that removes stack.yaml from the sdist. This is because πŸ“¦ stack.yaml now defines a multi-package project, whereas Hackage works on the πŸ‘€ basis on individual packages (see #4860)

    πŸ— If building a stack executable for distribution, please download the πŸš€ source code from https://github.com/commercialhaskell/stack/releases/tag/v2.1.1 πŸ— and build it using Stack itself in order to ensure identical behaviour πŸ“¦ to official binaries. This package on Hackage is provided for convenience and bootstrapping purposes.

  • v2.1.0.3 Changes

    June 03, 2019

    πŸš€ This is the second release candidate for v2.1

    πŸš€ Changes since v2.1.0.1 (first release candidate)

    Other enhancements:

    • βž• Add --docker-mount-mode option to set the Docker volume mount mode
      🐎 for performance tuning on macOS.

    πŸ› Bug fixes:

    • πŸ›  Fix regression where stack --docker would quit after 20 seconds on
      🍎 macOS.
  • v2.1.0.1 Changes

    May 26, 2019

    πŸš€ First release candidate for v2.1

    πŸ”„ Changes since v1.9.3

    Major changes:

    πŸ“¦ Switch over to pantry for managing packages. This is a major change
    to Stack's internals, and affects user-visible behavior in a few
    places. Some highlights:

    • Drop support for multiple package indices and legacy
      πŸ’… 00-index.tar style indices. See
      #4137.
    • Support for archives and repos in the packages section has
      🚚 been removed. Instead, you must use extra-deps for such
      πŸ“¦ dependencies. packages now only supports local filepaths.
    • Add support for Git repositories containing (recursive) submodules.
    • Addition of new configuration options for specifying a "pantry
      πŸ— tree" key, which provides more reproducibility around builds,
      πŸ“¦ and (in the future) will be used for more efficient package
      πŸ“¦ content downloads. You can also specify package name and version
      πŸ“œ for more efficient config parsing.
      * NOTE The new stack freeze command provides support
      for automatically generating this additional
      information.
    • Package contents and metadata are stored in an SQLite database
      in place of files on the filesystem. The pantry library can be
      πŸ‘‰ used for interacting with these contents.
    • Internally, Stack has changed many datatypes, including moving
      to Cabal's definition of many data types. As a result of such
      πŸ”„ changes, existing cache files will in general be invalidated,
      resulting in Stack needing to rebuild many previously cached
      πŸ— builds in the new version. Sorry :(.
    • A new command, stack freeze has been added which outputs
      πŸ“Œ project and snapshot definitions with dependencies pinned to
      their exact versions.
    • The ignore-revision-mismatch setting is no longer needed, and
      🚚 has been removed.
    • Overriding GHC boot packages results in any other GHC boot
      πŸ“¦ packages depending on it being no longer available as a dependency,
      πŸ‘€ such packages need to be added explicitly when needed. See
      [#4510] (#4510).
    • Cabal solver integration was not updated to support newer
      🚚 cabal-install versions so stack solver command was removed as
      well as a related option --solver from stack new and
      stack init.

    ⬆️ Upgrade to Cabal 2.4

    • Note that, in this process, the behavior of file globbing has
      been modified to match that of Cabal. In particular, this means
      that for Cabal spec versions less than 2.4, *.txt will
      match foo.txt, but not foo.2.txt.

    βœ‚ Remove the stack image command. With the advent of Docker multistage
    πŸ— builds, this functionality is no longer useful. For an example, please see
    πŸ— Building Haskell Apps with
    πŸ— Docker
    .

    πŸ‘Œ Support building GHC from source (experimental)

    • Stack now supports building and installing GHC from source. The built GHC
      is uniquely identified by a commit id and an Hadrian "flavour" (Hadrian is
      πŸ‘· the newer GHC build system), hence compiler can be set to use a GHC
      built from source with ghc-git-COMMIT-FLAVOUR

    πŸ”§ stack.yaml now supports a configure-options, which are passed directly to
    πŸ— the configure step in the Cabal build process. See
    #1438

    βœ‚ Remove support for building GHCJS itself. Future releases of Stack
    🚚 may remove GHCJS support entirely.

    πŸ‘Œ Support for lock files for pinning exact project dependency versions

    Behavior changes:

    πŸ‘€ stack.yaml now supports snapshot: a synonym for resolver. See #4256

    stack script now passes -i -idir in to the ghc
    invocation. This makes it so that the script can import local
    πŸ›  modules, and fixes an issue where .hs files in the current
    πŸ‘€ directory could affect interpretation of the script. See
    #4538

    When using stack script, custom snapshot files will be resolved
    relative to the directory containing the script.

    βœ‚ Remove the deprecated --upgrade-cabal flag to stack setup.

    πŸ‘Œ Support the drop-packages field in stack.yaml

    βœ‚ Remove the GPG signing code during uploads. The GPG signatures have
    never been used yet, and there are no plans to implement signature
    verification.

    βœ‚ Remove the --plain option for the exec family of commands

    πŸ”§ Always use the --exact-configuration Cabal configuration option when
    πŸ— building (should mostly be a non-user-visible enhancement).

    πŸ‘ No longer supports Cabal versions older than 1.19.2. This means
    projects using snapshots earlier than lts-3.0 or
    πŸ— nightly-2015-05-05 will no longer build.

    βœ‚ Remove the stack docker cleanup command. Docker itself now has
    🐳 docker image prune
    and
    🐳 docker container prune,
    which you can use instead.

    πŸ‘€ Interleaved output is now turned on by default, see
    #4702. In
    βž• addition, the packagename> prefix is no longer included in
    πŸ— interelaved mode when only building a single target.

    0️⃣ The -fhide-source-paths GHC option is now enabled by default and
    πŸ”§ can be disabled via the hide-source-paths configuration option in
    πŸ‘€ stack.yaml. See #3784

    πŸ“¦ Stack will reconfigure a package if you modify your PATH environment
    πŸ‘€ variable. See
    #3138.

    β†ͺ For GHC 8.4 and later, disable the "shadowed dependencies" workaround. This
    πŸ‘€ means that Stack will no longer have to force reconfigures as often. See
    #3554.

    πŸ”’ When building a package, Stack takes a lock on the dist directory in
    πŸ‘‰ use to avoid multiple runs of Stack from trampling each others'
    πŸ‘€ files. See
    #2730.

    Stack will check occassionally if there is a new version available and prompt
    ⬆️ the user to upgrade. This will not incur any additional network traffic, as
    ⚑️ it will piggy-back on the existing Hackage index updates. You can set
    ⬆️ recommend-stack-upgrade: false to bypass this. See
    #1681.

    🚚 stack list-dependencies has been removed in favour of stack ls dependencies.

    πŸ‘€ The new default for --docker-auto-pull is enabled. See
    #3332.

    Other enhancements:

    • πŸ‘Œ Support MX Linux in get-stack.sh. Fixes
      #4769.
    • πŸ“¦ Defer loading up of files for local packages. This allows us to get
      plan construction errors much faster, and avoid some unnecessary
      πŸ— work when only building a subset of packages. This is especially
      πŸ‘‰ useful for the curator use case.
    • Existing global option --color=WHEN is now also available as a
      πŸ”§ non-project-specific yaml configuration parameter color:.
    • Adopt the standard proposed at http://no-color.org/, that color should not be
      βž• added by default if the NO_COLOR environment variable is present.
    • πŸ†• New command stack ls stack-colors lists the styles and the associated 'ANSI'
      πŸ‘€ control character sequences that stack uses to color some of its output. See
      stack ls stack-colors --help for more information.
    • πŸ†• New global option --stack-colors=STYLES, also available as a
      πŸ”§ non-project-specific yaml configuration parameter, allows a stack user to
      πŸ’… redefine the default styles that stack uses to color some of its output. See
      stack --help for more information.
    • British English spelling of 'color' (colour) accepted as an alias for
      πŸ’» --color, --stack-colors, stack ls stack-colors at the command line and
      πŸ”§ for color: and stack-colors: in yaml configuration files.
    • πŸ†• New build option --ddump-dir. (See #4225)
    • πŸ“œ Stack parses and respects the preferred-versions information from
      πŸ“¦ Hackage for choosing latest version of a package in some cases,
      πŸ“¦ e.g. stack unpack packagename.
    • The components output in the The main module to load is ambiguous message
      πŸ“¦ now include package names so they can be more easily copy-pasted.
    • πŸ‘€ Git repos are shared across multiple projects. See
      #3551
    • 0️⃣ Use en_US.UTF-8 locale by default in pure Nix mode so programs won't
      crash because of Unicode in their output
      #4095
    • βž• Add --tree to ls dependencies to list dependencies as tree.
      #4101
    • βž• Add --pedantic to ghci to run with -Wall and -Werror
      #4463
    • βž• Add --cabal-files flag to stack ide targets command.
    • βž• Add --stdout flag to all stack ide subcommands.
    • πŸ“¦ Use batches when unregistering packages with ghc-pkg.
      πŸ‘€ (See #2662)
    • 🏁 get-stack script now works on Windows CI machines of Appveyor,
      πŸ‘€ Travis and Azure Pipelines. See
      #4535/
    • πŸ‘€ Show snapshot being used when stack ghci is invoked outside of a project directory. See
      #3651
    • The script interpreter now accepts a --extra-dep flag for adding
      πŸ“¦ packages not present in the snapshot. Currently, this only works
      πŸ“¦ with packages from Hackage, not Git repos or archives.
    • ⚑️ When using the script interpreter with --optimize or --compile,
      Stack will perform an optimization of checking whether a newer
      executable exists, making reruns significantly faster. There's a
      downside to this, however: if you have a multifile script, and
      πŸ”„ change one of the dependency modules, Stack will not automatically
      detect and recompile.
    • stack clean will delete the entire .stack-work/dist directory,
      πŸ‘€ not just the relevant subdirectory for the current GHC version. See
      #4480.
    • βž• Add stack purge as a shortcut for stack clean --full. See
      #3863.
    • Both stack dot and stack ls dependencies accept a
      πŸ‘€ --global-hints flag to bypass the need for an installed GHC. See
      #4390.
    • βž• Add the stack config env command for getting shell script environment
      πŸ‘€ variables. See #620.
    • 🏁 Less verbose output from stack setup on Windows. See
      #1212.
    • βž• Add an optional ignore-expiry flag to the hackage-security
      section of the ~/.stack/config.yaml. It allows to disable timestamp
      expiration verification just like cabal --ignore-expiry does.
      0️⃣ The flag is not enabled by default so that the default functionality
      is not changed.
    • 0️⃣ Include default values for most command line flags in the --help
      πŸ‘€ output. See
      #893.
    • Set the GHC_ENVIRONMENT environment variable to specify dependency
      πŸ“¦ packages explicitly when running test. This is done to prevent
      βœ… ambiguous module name errors in doctest tests.
    • Document the way stack interacts with the Cabal library.
    • 🏁 get-stack script now works on Windows CI machines of Appveyor,
      πŸ‘€ Travis and Azure Pipelines. See
      #4535
    • 🐳 Warn when a Docker image does not include a PATH environment
      πŸ‘€ variable. See
      #2472
    • When using system-ghc: true, Stack will now find the appropriate GHC
      installation based on the version suffix, allowing you to more easily switch
      πŸ‘€ between various system-installed GHCs. See
      #2433.
    • πŸ‘ stack init will now support create a stack.yaml file without any local
      πŸ‘€ packages. See #2465
    • Store caches in SQLite database instead of files.
    • 🐳 No longer use "global" Docker image database (docker.db).
    • πŸ‘€ User config files are respected for the script command. See
      #3705,
      #3887.
    • Set the GHC_ENVIRONMENT environment variable to - to tell GHC to
      ignore any such files when GHC is new enough (>= 8.4.4), otherwise
      simply unset the variable. This allows Stack to have control of
      πŸ“¦ package databases when running commands like stack exec ghci, even
      πŸ— in the presence of implicit environment files created by cabal new-build. See
      #4706.
    • πŸ‘‰ Use a database cache table to speed up discovery of installed GHCs
    • πŸ‘€ You can specify multiple --test-arguments options. See
      #2226
    • 🏁 Windows terminal width detection is now done. See
      #3588
    • 🏁 On Windows, informs users if the 'programs' path contains a space character
      and further warns users if that path does not have an alternative short
      πŸ”§ ('8 dot 3') name, referencing the local-programs-path configuration option.
      πŸ‘€ See #4726

    πŸ› Bug fixes:

    • Ignore duplicate files for a single module when a Haskell module was
      πŸ‘€ generated from a preprocessor file. See
      #4076.
    • Only track down components in current directory if there are no
      hs-source-dirs found. This eliminates a number of false-positive
      ⚠ warnings, similar to
      #4076.
    • πŸ– Handle a change in GHC's hi-dump format around addDependentFile,
      πŸ‘€ which now includes a hash. See
      yesodweb/yesod#1551
    • πŸ›  Fix subdirs for git repos in extra-deps to match whole directory names.
      πŸ‘€ Also fixes for subdirs: .. See
      #4292
    • πŸ›  Fix for git packages to update submodules to the correct state. See
      #4314
    • βž• Add --cabal-files flag to stack ide targets command.
    • Don't download ghc when using stack clean.
    • πŸ‘Œ Support loading in GHCi definitions from symlinked C files. Without this
      patch, Stack will try to find object files in the directory pointed to
      by symlinks, while GCC will produce the object files in the original
      πŸ‘€ directory. See
      #4402
    • πŸ›  Fix handling of GitHub and URL templates on Windows. See
      commercialhaskell/stack#4394
    • πŸ›  Fix --file-watch not responding to file modifications when running
      πŸ‘€ inside docker on Mac. See
      #4506
    • Using --ghc-options with stack script --compile now works.
    • βœ… Ensure the detailed-0.9 type tests work.
      πŸ‘€ See #4453.
    • πŸ‘€ Extra include and lib dirs are now order-dependent. See
      #4527.
    • πŸ— Apply GHC options when building a Setup.hs file. See
      #4526.
    • Stack handles ABI changes in FreeBSD 12 by differentiating that version from previous.
    • Help text for the templates subcommand now reflects behaviour in stack 1.9 β€” that it
      downloads and shows a help file, rather than listing available templates.
    • πŸ›  Fix detection of aarch64 platform (this broke when we upgraded to a newer Cabal version).
    • πŸ‘€ Docker: fix detecting and pulling missing images with --docker-auto-pull, see
      #4598
    • πŸ‘€ Hackage credentials are not world-readable. See
      #2159.
    • πŸ‘€ Warnings are dumped from logs even when color is enabled. See
      #2997
    • πŸ‘€ stack init will now work for cabal files with sublibraries. See
      #4408
    • πŸ— When the Cabal spec version is newer than the global Cabal version, build
      πŸ‘€ against the snapshot's Cabal library. See
      #4488
    • 🐳 Docker: fix detection of expected subprocess failures. This fixes
      🐧 downloading a compatible stack executable when the host stack is not compatible with the Docker image (on Linux), and doesn't show an unnecessary
      extra error when the in-container re-exec'ed stack exits with failure.
    • πŸ“œ The stack ghci command's --ghc-options flag now parses multiple options.
      πŸ‘€ See #3315.
  • v1.9.3 Changes

    December 02, 2018

    ⬆️ See https://haskellstack.org for installation and upgrade instructions.

    πŸ”„ Changes since v1.9.1:

    πŸ› Bug fixes:

    • Stack can now be compiled again inside a directory that does not
      πŸ‘€ contain a .git directory, see
      #4364
    • πŸ– Handle a change in GHC's hi-dump format around addDependentFile,
      πŸ‘€ which now includes a hash. See
      yesodweb/yesod#1551
    • πŸ‘ Allow variables to appear in template file names.
    πŸš€ Thanks to all our contributors for this release:
    • Damian
    • dbaynard
    • Emanuel Borsboom
    • Fangyi Zhou
    • Flo Edelmann
    • Matt Audesse
    • Michael Snoyman
    • Mihai Maruseac
    • Phil de Joux
    • Shinya Yamaguchi
    • shiyuge
    • 欧阳泽
  • v1.9.3.1 Changes

    April 18, 2019

    πŸš€ Hackage-only release with no user facing changes (added compatibility with rio-0.1.9.2).

  • v1.9.1 Changes

    October 17, 2018

    ⬆️ See https://haskellstack.org for installation and upgrade instructions.

    πŸ”„ Changes since v1.7.1:

    πŸš€ Release notes:

    • 🐧 Statically linked Linux bindists are back again, thanks to @nh2.
    • πŸš€ We will be deleting the Ubuntu, Debian, CentOS, Fedora, and Arch package repos from download.fpcomplete.com soon. These have been deprecated for over a year and have not received new releases, but were left in place for compatibility with older scripts.

    Major changes:

    • ⬆️ Upgrade to Cabal 2.4
      • Note that, in this process, the behavior of file globbing has
        been modified to match that of Cabal. In particular, this means
        that for Cabal spec versions less than 2.4, *.txt will
        match foo.txt, but not foo.2.txt.
    • ⬇️ GHCJS support is being downgraded to 'experimental'. A warning notifying the user of the experimental status of GHCJS will be displayed.

    Behavior changes:

    • ghc-options from stack.yaml are now appended to ghc-options from
      config.yaml, whereas before they would be replaced.
    • πŸ— stack build will now announce when sublibraries of a package are being
      πŸ— build, in the same way executables, tests, benchmarks and libraries are
      announced
    • stack sdist will now announce the destination of the generated tarball,
      regardless of whether or not it passed the sanity checks
    • ⬆️ The --upgrade-cabal option to stack setup has been
      πŸ—„ deprecated. This feature no longer works with GHC 8.2 and
      later. Furthermore, the reason for this flag originally being
      implemented was drastically lessened once Stack started using the
      πŸ‘€ snapshot's Cabal library for custom setups. See:
      #4070.
    • With the new namespaced template feature, stack templates is no
      longer able to meaningfully display a list of all templates
      available. Instead, the command will download and display a
      help file
      πŸ‘€ with more information on how to discover templates. See:
      #4039
    • πŸ— Build tools are now handled in a similar way to cabal-install. In
      πŸ— particular, for legacy build-tools fields, we use a hard-coded
      πŸ— list of build tools in place of looking up build tool packages in a
      tool map. This both brings Stack's behavior closer into line with
      cabal-install, avoids some bugs, and opens up some possible
      πŸ‘€ optimizations/laziness. See:
      #4125.
    • Mustache templating is not applied to large files (over 50kb) to
      🐎 avoid performance degredation. See:
      #4133.
    • πŸ“¦ stack upload signs the package by default, as documented. --no-signature
      turns the signing off.
      #3739
    • In case there is a network connectivity issue while trying to
      download a template, stack will check whether that template had
      been downloaded before. In that case, the cached version will be
      πŸ‘€ used. See #3850.

    Other enhancements:

    • 🏁 On Windows before Windows 10, --color=never is the default on terminals that
      πŸ‘ can support ANSI color codes in output only by emulation
    • 🏁 On Windows, recognise a 'mintty' (false) terminal as a terminal, by default
    • πŸ— stack build issues a warning when base is explicitly listed in
      extra-deps of stack.yaml
    • πŸ— stack build suggests trying another GHC version should the build
      plan end up requiring unattainable base version.
    • πŸ— A new sub command run has been introduced to build and run a specified executable
      similar to cabal run. If no executable is provided as the first argument, it
      0️⃣ defaults to the first available executable in the project.
    • πŸ— stack build missing dependency suggestions (on failure to construct a valid
      πŸ— build plan because of missing deps) are now printed with their latest
      πŸ‘€ cabal file revision hash. See
      #4068.
    • βž• Added new --tar-dir option to stack sdist, that allows to copy
      the resulting tarball to the specified directory.
    • πŸ’» Introduced the --interleaved-output command line option and
      πŸ— build.interleaved-output config value which causes multiple concurrent
      πŸ— builds to dump to stderr at the same time with a packagename> prefix. See
      #3225.
    • 0️⃣ The default retry strategy has changed to exponential backoff.
      This should help with
      #3510.
    • stack new now allows template names of the form username/foo to
      πŸ›  download from a user other than commercialstack on Github, and can be prefixed
      with the service github:, gitlab:, or bitbucket:. #4039
    • πŸ›  Switch to githash to include some unmerged bugfixes in gitrev
      Suggestion to add 'allow-newer': true now shows path to user config
      file where this flag should be put into #3685
    • πŸ— stack ghci now asks which main target to load before doing the build,
      rather than after
    • ⬆️ Bump to hpack 0.29.0
    • With GHC 8.4 and later, Haddock is given the --quickjump flag.
    • πŸ“¦ It is possible to specify the Hackage base URL to upload packages to, instead
      0️⃣ of the default of https://hackage.haskell.org/, by using hackage-base-url
      πŸ”§ configuration option.
    • When using Nix, if a specific minor version of GHC is not requested, the
      βœ… latest minor version in the given major branch will be used automatically.

    πŸ› Bug fixes:

    • stack ghci now does not invalidate .o files on repeated runs,
      meaning any modules compiled with -fobject-code will be cached
      πŸ‘€ between ghci runs. See
      #4038.
    • ~/.stack/config.yaml and stack.yaml terminating by newline
    • πŸš€ The previous released caused a regression where some stderr from the
      ghc-pkg command showed up in the terminal. This output is now silenced.
    • πŸ›  A regression in recompilation checking introduced in v1.7.1 has been fixed.
      πŸ‘€ See #4001
    • πŸ“¦ stack ghci on a package with internal libraries was erroneously looking
      πŸ“¦ for a wrong package corresponding to the internal library and failing to
      πŸ›  load any module. This has been fixed now and changes to the code in the
      πŸ‘€ library and the sublibrary are properly tracked. See
      #3926.
    • πŸ— For packages with internal libraries not depended upon, stack build used
      πŸ— to fail the build process since the internal library was not built but it
      πŸ— was tried to be registered. This is now fixed by always building internal
      πŸ‘€ libraries. See
      #3996.
    • --no-nix was not respected under NixOS
    • πŸ›  Fix a regression which might use a lot of RAM. See
      #4027.
    • Order of commandline arguments does not matter anymore.
      πŸ‘€ See #3959
    • When prompting users about saving their Hackage credentials on upload,
      flush to stdout before waiting for the response so the prompt actually
      πŸ›  displays. Also fixes a similar issue with ghci target selection prompt.
    • If cabal is not on PATH, running stack solver now prompts the user
      to run stack install cabal-install
    • πŸ— stack build now succeeds in building packages which contain sublibraries
      βœ… which are dependencies of executables, tests or benchmarks but not of the
      πŸ‘€ main library. See
      #3787.
    • βœ… Sublibraries are now properly considered for coverage reports when the test
      suite depends on the internal library. Before, stack was erroring when
      πŸ‘€ trying to generate the coverage report, see
      #4105.
    • Sublibraries are now added to the precompiled cache and recovered from there
      ⚑️ when the snapshot gets updated. Previously, updating the snapshot when there
      πŸ— was a package with a sublibrary in the snapshot resulted in broken builds.
      πŸ‘€ This is now fixed, see
      #4071.
    • πŸ–¨ [#4114] Stack pretty prints error messages with proper error logging
      ⚠ level instead of warning now. This also fixes self-executing scripts
      not piping plan construction errors from runhaskell to terminal (issue
      #3942).
    • πŸ›  Fix invalid "While building Setup.hs" when Cabal calls fail. See:
      #3934
    • πŸ“¦ stack upload signs the package by default, as documented. --no-signature
      turns the signing off.
      #3739

    πŸš€ Thanks to all our contributors for this release:

    • Adrian Wong
    • Alexey Kotlyarov
    • Andrea Bessi
    • Asalle
    • Asalle Mirzaieva
    • Attila Domokos
    • braulio
    • Buck Evan
    • Chris Allen
    • Chris Done
    • chromezh
    • Darryl Abbate
    • David Baynard
    • David Jarvis
    • dbaynard
    • Emanuel Borsboom
    • Francis De Brabandere
    • Guy Sheffer
    • Ivan Kasatenko
    • John Mendonca
    • Jonathan Boulle
    • Kirill Zaborsky
    • Kostiantyn Rybnikov
    • Lyle Kopnicky
    • Markus Hauck
    • Matchwood
    • Matt Audesse
    • Michael Sloan
    • Michael Snoyman
    • Mihai Maruseac
    • Mike Pilgrem
    • ncaq
    • Paolo G. Giarrusso
    • Pavel Krajcevski
    • Pratik Chaudhary
    • pythonissam
    • Reuben D'Netto
    • Richard Szibele
    • RoelofWobben
    • rszibele
    • Sandy Maguire
    • Sibi Prabakaran
    • Simon Hengel
    • tdietert
    • The Gitter Badger
    • Thomas Tuegel
    • Tom Sydney Kerckhove
    • Tom Welsh
    • Trevor Rothaus
    • trotha01
    • 欧阳泽
  • v1.9.1.1 Changes

    November 14, 2018

    πŸš€ Hackage-only release with no user facing changes.

    • Stack can now be compiled again inside a directory that does not contain a .git directory, see #4364