- Download
stack
- Decide on an resolver, e.g.
lts-8.24
- Set the resolver in ~/.stack/global-project/stack.yaml
- In a work directory:
- Run:
stack get cabal
- Add a
stack.yaml
file to the pull sources - Run:
stack install
. Thecabal
executable should be installed in~/.local/bin
.
- Grab the
cabal.config
for the resolver:curl https://www.stackage.org/lts-8.24/cabal.config
- Use the
build-everything-cabal
script below to generate aeverything.cabal
file with all the packages listed in thebuild-depends:
field. Place the cabal file in~/.stack/global-project
. Now you can usestack install
outside a project directory and get packages installed.