From b911c20734202466d1956bd7362d55c63dd44da1 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Mon, 28 Oct 2019 18:03:13 +0100 Subject: Add stack instructions --- stack.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 stack.md diff --git a/stack.md b/stack.md new file mode 100644 index 0000000..61ed76a --- /dev/null +++ b/stack.md @@ -0,0 +1,29 @@ +# Haskell builds + +## Init + + stack new project-name # creates project-name/ + stack setup # installs ghc etc. to ~/.stack/ + stack build # builds project-name-exe in .stack-work/ + +## Directory Structure + +### app + +Sources directly related to executables + +### src + +Logic? + +### Package related stuff + +* project-name.cabal - auto-generated by `stack build`. +* Setup.hs - part of Cabal. By default just boilerplate. +* stack.yaml - project settings. +* package.yaml - package config + +## Dependencies + +Add to package.yaml, and potentially to extra-deps in stack.yaml if not included +by resolver package set. -- cgit v1.2.3