diff options
author | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2019-10-28 18:03:13 +0100 |
---|---|---|
committer | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2019-10-28 18:03:13 +0100 |
commit | b911c20734202466d1956bd7362d55c63dd44da1 (patch) | |
tree | d91b2803a0dbf976f57c1f1eca22f9fbf71073a7 | |
parent | 59ea210a554fd3b5e62994ec44e15b5df06bd0ed (diff) |
Add stack instructions
-rw-r--r-- | stack.md | 29 |
1 files changed, 29 insertions, 0 deletions
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. |