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

Command form

ai-draft · 2 tasks · 9 fields

Build, test and create Haskell projects. Setup, upload and the other stack commands are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui stack

stack build

Build packages

Build the packages in the current project.

Build packagesExample values, fixed in this page — nothing here reaches a terminal
Basic
Targets
string
Pedantic
--pedantic
TasksEach one presets the form for one job
Build
targetspedantic
Build on change
targets
ParametersOnly these flags are editable in the form
Targets
Packages or targets to build; empty builds the project.
string · positional 0 · repeatable
Run tests
Run the complete test suite.
boolean
--test
Run benchmarks
Run benchmarks.
boolean
--bench
Build Haddocks
Generate Haddocks.
boolean
--haddock
Watch files
Rebuild when files change.
boolean
--file-watch
Pedantic
Turn on -Wall and -Werror.
boolean
--pedantic
Copy binaries
Copy executables to the local bin path.
boolean
--copy-bins
Resolver
Override the resolver in the project file.
string
--resolver
GHC options
Additional options passed to GHC for local targets.
string
--ghc-options
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed stack against its version. A form that does not match your version is not offered.