stack-all: CLI tool for building across Stackage major versions

[ bsd3, distribution, program ] [ Propose Tags ]

Build your Haskell project over Stackage major LTS versions.

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS] 0.1, 0.1.1, 0.1.2, 0.2, 0.2.1, 0.2.2, 0.3, 0.3.1, 0.4,, 0.4.1
Change log
Dependencies aeson, base (<5), cached-json-file, config-ini, directory (>=1.2.5), extra (>=1.6.15), filepath, http-query, process, simple-cmd (>=0.1.4), simple-cmd-args, text, unordered-containers [details]
License BSD-3-Clause
Copyright 2020-2023 Jens Petersen <>
Author Jens Petersen <>
Maintainer Jens Petersen <>
Category Distribution
Home page
Bug tracker
Source repo head: git clone
Uploaded by JensPetersen at 2023-02-20T13:45:05Z
Distributions LTSHaskell:0.4.1, NixOS:0.4.1, Stackage:0.4.1
Executables stack-all
Downloads 1259 total (27 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2023-02-20 [all 1 reports]

Readme for stack-all-0.4.1

[back to package description]


A CLI tool for building Haskell projects easily over Stackage major versions.

This is how I do my Haskell build CI for projects locally with stack.


stack-all by default runs stack build over Stackage Nightly and LTS major versions (current default is nightly & LTS 20, 19, 18, 16, 14, 13, 12, 11) corresponding to latest major ghc minor versions, with appropriate stack --resolver options.

Note that stack only works if a stack.yaml file exists. If no stack.yaml file is found, stack-all will create one. Of course it may still fail to build, but this allows for quickly trying to build a package that does not include stack support.

Overriding stack.yaml

stack-all can use stack-ltsXX.yaml files to override the default stack.yaml file for particular Stackage major versions. Note that a stack-ltsXX.yaml file will also be used for older LTS major versions until another stack-ltsYY.yaml file is found. stack-nightly.yaml is also supported, but used only for nightly.

For example if you have stack-lts18.yaml and stack-lts13.yaml files in your project, then stack.yaml will be used as normal to build nightly, lts-20 and lts-19, but stack-lts18.yaml will be used for building lts-18 and lts-16, and stack-lts14.yaml will be used for lts-14, lts-13 (and older). Since stack-all overrides the exact resolver with the latest minor snapshot, the exact minor Stackage version specified in the stack*.yaml files doesn't actually matter: stack-all always uses the latest published minor releases of Stackage major versions.

stack-ltsXX.yaml files can be easily created using stack-all --make-lts ltsXX (or -s ltsXX for short).

(Other versioned stack.yaml filenames like stack-ghc-8.8.yaml are not currently supported.)

Specifying LTS versions

You can abbreviate lts-XX args to ltsXX on the commandline. lts is also accepted and resolved to the latest major LTS version.

There are --oldest and --newest options to specify the range of lts versions to build over:

You can specify the oldest major LTS to build for with eg stack-all -o lts13. Otherwise if not configured the default oldest LTS is currently lts-11.

Similarly you can specify the newest LTS version to build from with eg stack-all -n lts18. (The default is to build from nightly.)

Alternatively, one can give one or more explicit LTS major versions to build for as arguments: eg stack-all lts16 if you only wish to build that version.

Configuring the oldest and/or newest LTS to build

You can configure the oldest working LTS major version for your project by running for example stack-all -c -o lts-16 which generates a .stack-all project config file like this:

# lts-14 too old
oldest = lts-16

(the comment line can be used to document why the older LTS doesn't work). This specifies that the oldest LTS version to build for is lts-16.

The newest LTS to build with stack-all can similarly be configured: stack-all -c -n lts19 or setting newest = lts-19.

Running other stack commands

By default stack-all just runs the stack build command over Stackage major versions.

You can also specify a stack command to run with options on the commandline: eg

$ stack-all test --no-rerun-tests

will run stack test over the LTS versions instead.

Happy stack building!


The project is released on Hackage.

You can also build from git source with stack install or cabal install.


The project is hosted at under a BSD license.