The Haskell Tool Stack¶
Documentation table of contents¶
- Build command
- Dependency visualization
- Docker integration
- FAQ
- Where is stack installed and will it interfere with
ghc
(etc) I already have installed? - What is the relationship between stack and cabal?
- I need to use a different version of a package than what is provided by the LTS Haskell snapshot I’m using, what should I do?
- I need to use a package (or version of a package) that is not available on hackage, what should I do?
- What is the meaning of the arguments given to stack build, test, etc?
- I need to modify an upstream package, how should I do it?
- Am I required to use a Stackage snapshot to use stack?
- How do I use this with sandboxes?
- Can I run
cabal
commands insidestack exec
? - Using custom preprocessors
- I already have GHC installed, can I still use stack?
- How does stack determine what GHC to use?
- How do I upgrade to GHC 7.10.2 with stack?
- How do I get extra build tools?
- How does stack choose which snapshot to use when creating a new config file?
- I’d like to use my installed packages in a different directory. How do I tell stack where to find my packages?
- My tests are failing. What should I do?
- Can I get bash autocompletion?
- How do I update my package index?
- Isn’t it dangerous to automatically update the index? Can’t that corrupt build plans?
- I have a custom package index I’d like to use, how do I do so?
- How can I make sure my project builds against multiple ghc versions?
- I heard you can use this with Docker?
- How do I use this with Travis CI?
- What is licensing restrictions on Windows?
- How to get a working executable on Windows?
- Can I change stack’s default temporary directory?
- stack sometimes rebuilds based on flag changes when I wouldn’t expect it to. How come?
- stack setup on a windows system only tells me to add certain paths to the PATH variable instead of doing it
- How do I reset / remove Stack (such as to to do a completely fresh build)?
- How does stack handle parallel builds? What exactly does it run in parallel?
- I get strange
ld
errors about recompiling with “-fPIC” - Where does the output from
--ghc-options=-ddump-splices
(and other-ddump*
options) go? - Why is DYLD_LIBRARY_PATH ignored?
- Why do I get a
/usr/bin/ar: permission denied
error? - Why is the
--
argument separator ignored in Windows PowerShell
- Where is stack installed and will it interfere with
- GHCJS
- Install/upgrade
- Nix integration
- Non-standard project initialization
- Shell Auto-completion
- User guide
- Stack’s functions
- Downloading and Installation
- Hello World Example
- Inner Workings of stack
- Adding dependencies
- Curated package sets
- Resolvers and changing your compiler version
- Existing projects
- Different databases
- The build synonyms
- Targets, locals, and extra-deps
- Multi-package projects
- Flags and GHC options
- path
- exec
- ghci (the repl)
- ghc/runghc
- Finding project configs, and the implicit global
- stack.yaml vs .cabal files
- Comparison to other tools
- More resources
- Fun features
- Power user commands
- Debugging
- YAML Configuration
- Project config
- Non-project config
- docker
- nix
- connection-count
- hide-th-loading
- latest-snapshot-url
- local-bin-path
- package-indices
- system-ghc
- install-ghc
- skip-ghc-check
- require-stack-version
- arch/os
- extra-include-dirs/extra-lib-dirs
- compiler-check
- compiler
- ghc-options
- ghc-variant
- setup-info
- pvp-bounds
- modify-code-page
- explicit-setup-deps
- rebuild-ghc-options
- apply-ghc-options
- allow-newer
- templates