How to set up a Haskell project
This week I've started reading Haskell Programming From First Principles and authors recommend using Stack I went through installing it on two machines. Unfortunately, the docs are a little wordy so I've made a post that will contain only steps that were relevant for me.
Generic setup #
curl -sSL https://get.haskellstack.org/ | sh
stack new helloworld
- If you follow the book then jump to Custom setup for the book
stack exec helloworld-exe(notice added
Custom setup for the book #
# to (book version)
stack exec helloworld-exewon't work for you.