- 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.yamlfile to the pull sources - Run:
stack install. Thecabalexecutable should be installed in~/.local/bin.
- Grab the
cabal.configfor the resolver:curl https://www.stackage.org/lts-8.24/cabal.config - Use the
build-everything-cabalscript below to generate aeverything.cabalfile with all the packages listed in thebuild-depends:field. Place the cabal file in~/.stack/global-project. Now you can usestack installoutside a project directory and get packages installed.