stack v0.1.3.0 Release Notes

  • Major changes:

    • 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-modules in the .cabal file
      • These modules are taken into account when determining whether a package needs to be built
    • Respect TemplateHaskell addDependentFile dependency changes (#105)
      • TH dependent files are taken into account when determining whether a package needs to be built.
    • โœ… Overhauled target parsing, added --test and --bench options #651

    Other enhancements:

    • Set the HASKELL_DIST_DIR environment 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-path global 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-bins option #569
    • โš  Give warnings on unexpected config keys #48
    • โœ‚ Remove Docker pass-host option
    • Don't require cabal-install to upload #313
    • ๐Ÿ“ฆ Generate indexes for all deps and all installed snapshot packages #143
    • Provide --resolver global option #645
      • Also supports --resolver nightly, --resolver lts, and --resolver lts-X
    • ๐Ÿ— Make stack build --flag error when flag or package is unknown #617
    • Preserve file permissions when unpacking sources #666
    • ๐Ÿ— stack build etc work outside of a project
    • list-dependencies command #638
    • โฌ†๏ธ --upgrade-cabal option to stack setup #174
    • --exec option #651
    • --only-dependencies implemented correctly #387

    ๐Ÿ› Bug fixes:

    • 0๏ธโƒฃ Extensions from the other-extensions field 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)