m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2019-10-28 18:03:13 +0100
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2019-10-28 18:03:13 +0100
commitb911c20734202466d1956bd7362d55c63dd44da1 (patch)
treed91b2803a0dbf976f57c1f1eca22f9fbf71073a7
parent59ea210a554fd3b5e62994ec44e15b5df06bd0ed (diff)
Add stack instructions
-rw-r--r--stack.md29
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.