blob: 61ed76a53670cf9ef23aae16569a2460274b8894 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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.
|