on master help sign in
Add stack.yml project definition
commit980e6c49997806f8d028d2580b7ddb2478d49bd9 authorCorey O'Connor <coreyoconnor@gmail.com> dateTue 10 May 2016, 18:25 (10 years ago) parent08391a6
2 files changed+50
README.md+10 stack.yaml+40
README.md+10
@@ -83,6 +83,8 @@ cygwin only.
8383
8484## Under NixOS
8585
86+### Using cabal
87+
8688After installing ncurses to user env.
8789
8890~~~
@@ -91,6 +93,14 @@ LIBRARY_PATH=$HOME/.nix-profile/lib/ cabal build
9193LIBRARY_PATH=$HOME/.nix-profile/lib/ cabal test
9294~~~
9395
96+### Using stack
97+
98+~~~
99+stack build
100+stack test
101+stack install
102+~~~
103+
94104## Coverage
95105
96106As of last testing, profiling causes issues with coverage when enabled. To
stack.yamlnew file+40
@@ -0,0 +1,40 @@
1+# For more information, see: http://docs.haskellstack.org/en/stable/yaml_configuration.html
2+
3+# Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2)
4+resolver: lts-5.11
5+
6+# Local packages, usually specified by relative directory name
7+packages:
8+- '.'
9+- test/
10+
11+# Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3)
12+extra-deps: []
13+
14+# Override default flag values for local packages and extra-deps
15+flags: {}
16+
17+# Extra package databases containing global packages
18+extra-package-dbs: []
19+
20+nix:
21+ enable: true
22+ packages: [ncurses]
23+
24+# Control whether we use the GHC we find on the path
25+# system-ghc: true
26+
27+# Require a specific version of stack, using version ranges
28+# require-stack-version: -any # Default
29+# require-stack-version: >= 1.0.0
30+
31+# Override the architecture used by stack, especially useful on Windows
32+# arch: i386
33+# arch: x86_64
34+
35+# Extra directories used by stack for building
36+# extra-include-dirs: [/path/to/dir]
37+# extra-lib-dirs: [/path/to/dir]
38+
39+# Allow a newer minor version of GHC than the snapshot specifies
40+# compiler-check: newer-minor