Changes since v3.7.1:
Behavior changes:
- Where applicable and Stack supports the GHC version, only the wired-in packages of the actual version of GHC used are treated as wired-in packages.
- Stack now recognises
ghc-internalas a GHC wired-in package. - The configuration option
package-indexhas a new default value: thekeyidskey lists the keys of the Hackage root key holders applicable from 2025-07-24. - Stack's
dotcommand now treats--depththe same way as thels dependenciescommand, so that the nodes ofstack dot --external --depth 0are the same as the packages listed bystack ls dependencies --depth 0. - When building GHC from source, on Windows, the default Hadrian build target is
reloc-binary-distand the default path to the GHC built by Hadrian is_build/reloc-bindist. - Stack's
haddockcommand no longer requires a package to have a main library that exposes modules.
Other enhancements:
- Bump to Hpack 0.38.2.
- Consider GHC 9.14 to be a tested compiler and remove warnings.
- Consider Cabal 3.16 to be a tested library and remove warnings.
- From GHC 9.12.1,
baseis not a GHC wired-in package. In configuration files, thenotify-if-base-not-bootkey is introduced, to allow the exisitng notification to be muted if unwanted when using such GHC versions. - Add flag
--[no-]omit-this(default: disabled) to Stack'scleancommand to omit directories currently in use from cleaning (when--fullis not specified). - Add option
-was synonym for--stack-yaml. stack newnow allowscodeberg:as a service for template downloads.- In YAML configuration files, the
compiler-targetandcompiler-bindist-pathkeys are introduced to allow, when building GHC from source, the Hadrian build target and Hadrian path to the built GHC to be specified.
Bug fixes:
--PROG-option=<argument>passes--PROG-option=<argument>(and not--PROG-option="<argument>") to Cabal (the library).- The message S-7151 now presents as an error, with advice, and not as a bug.
- Stack's
dotcommand now uses a box to identify all GHC wired-in packages, not just those with no dependencies (being onlyrts). - Stack's
dotcommand now gives all nodes with no dependencies in the graph the maximum rank, not just those nodes with no relevant dependencies at all (being onlyrts, when--externalis specified). - Improved error messages for S-4634 and S-8215.
- Improved in-app help for the
--hpack-forceflag.