curl -sSL https://get.haskellstack.org/ | sh
stack new <project-name> simple-hpack
cd <project-name>
// build project
stack build
// install dev tools
stack install ghcid
stack build intero
// run
stack run
- install vscode plugins:
Haskero cmd+shift+p>Terminal: create new integrated terminal- In the new terminal, run ghcid. You can either:
- Add
/Users/<user>/.local/bin/to your path if it's not there already, and runghcid --command "stack ghci" - Or run it like this if you don't want to alter your path:
stack exec ghcid -- --command 'stack ghci'
- Add
- Ghcid will compile the program on every change and tell you about warnings/errors. You can also ask ghcid to compile and run your program on every change by adding
--run
Other stuff:
- start a repl for interactive development:
stack ghci, quit with:q - to add a new dependency, add an entry to
dependenciesinpackage.yaml