All apps/Stack

Stack

stack

Stack is a program for developing Haskell projects, aimed at new and experienced users and supporting Linux, macOS and Windows.

Runs as stack|macOS, Linux, Windows|haskellstack.org

Autocomplete

Fig spec, with what the manifest adds · 21 subcommands · 27 options
Published once and never changed; check the digest before caching
sha256
12db3a4c30ce74c126a28b4249ed28820220f6919d7a0c133b07851ce558d05f
Size
16806 bytes
Subcommands21 subcommands
stack build
Build the package(s) in the current directory/configuration
stack install
Builds the package in current directory and copies it as an executable for system wide usage. Shortcut for 'build --copy-bins
stack test
Shortcut for 'build --test'
stack bench
Shortcut for 'build --bench'
stack haddock
Shortcut for 'build --haddock'
stack new
Create a new project from a template. Run `stack templates' to see available templates. Note: you can also specify a local file or a remote URL as a template
stack templates
Show how to find templates available for `stack new'. `stack new' can accept a template from a remote repository (default: github), local file or remote URL. Note: this downloads the help file
stack init
Create stack project config from cabal or hpack package specifications'
stack setup
Get the appropriate GHC for your project
stack path
Print out handy path information
stack ls
List command. Supports snapshots, dependencies and stack's styles
stack unpack
Unpack one or more packages locally
stack update
Update the package index
stack upgrade
Upgrade to the latest stack version
stack upload
Upload a package to Hackage
stack sdist
Create source distribution tarballs
stack dot
Visualize your project's dependency graph using Graphviz dot
stack hoogle
Run hoogle, the Haskell API search engine. Use the '-- ARGUMENT(S)' syntax to pass Hoogle arguments, e.g. stack hoogle -- --count=20, or stack hoogle --server --local
stack exec
Execute a command. If the command is absent, the first of any arguments is taken as the command
stack run
Build and run an executable. Defaults to the first available executable if none is provided as the first argument
stack repl
Load a REPL
OptionsOn stack itself
--help-h
Show help for stack
--version
Show version for stack
--numeric-version
Show only the numeric version for stack
--hpack-numeric-version
Show only hpack's version number
--verbosity
Verbosity: silent, error, warn, info, debug
--verbose-v
Enable verbose mode: verbosity level "debug"
--silent
Enable silent mode: verbosity level "silent"
--stack-root
Absolute path to the global stack root directory (Overrides any STACK_ROOT environment variable)
--work-dir
Relative path of work directory (Overrides any STACK_WORK environment variable, default is '.stack-work')
--system-ghc
Enable using the system installed GHC (on the PATH) if it is available and its version matches. Disabled by default
--no-system-ghc
Disable using the system installed GHC (on the PATH) if it is available and its version matches. Disabled by default
--install-ghc
Enable downloading and installing GHC if necessary (can be done manually with stack setup). Enabled by default)
--no-install-ghc
Disable downloading and installing GHC if necessary (can be done manually with stack setup). Enabled by default
--ghc-variant
Specialized GHC variant, e.g. integersimple (incompatible with --system-ghc)
--ghc-build
Specialized GHC build, e.g. 'gmp4' or 'standard' (usually auto-detected)
--jobs-j
Number of concurrent jobs to run. Should be provied as ARGS
--extra-include-dirs
Extra directories to check for C header files
--extra-lib-dir
Extra directories to check for libraries
--custom-preprocessor-extensions
Extensions used for custom preprocessors
--color--colour
Specify when to use color in output <WHEN>
--compiler
Use the specified compiler <COMPILER>
--terminal
Enable overriding terminal detection in the case of running in a false terminal
--no-terminal
Disable overriding terminal detection in the case of running in a false terminal
--stack-colors--stack-colours
Specify stack's output styles <STYLE>
--terminal-width
Specify the width of the terminal, used for pretty-print messages <INT>
--stack-yaml
Override project stack.yaml file (overrides any STACK_YAML environment variable) <STACK-YAML>
--lock-file
Specify how to interact with lock files <ARG>