stack
Tool for managing Haskell projects. More information: https://github.com/commercialhaskell/stack.
-
Create a new package:
stack new {{package}} {{template}}
-
Compile a package:
stack build
-
Run tests inside a package:
stack test
-
Compile a project and re-compile every time a file changes:
stack build --file-watch
-
Compile a project and execute a command after compilation:
stack build --exec "{{command}}"
-
Run a program and pass an argument to it:
stack exec {{program}} -- {{argument}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.