m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/stack.md
diff options
context:
space:
mode:
Diffstat (limited to 'stack.md')
-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.