on master help sign in
Disable examples by default
commitfa3af0de5f7820ca731ecbcce28a615a0a70995a authorMichael Snoyman <michael@snoyman.com> dateMon 11 Apr 2016, 10:44 (11 years ago) parent6421e93
2 files changed+9−1
stack.yaml+4 yaml.cabal+5−1
stack.yaml+4
@@ -1 +1,5 @@
11resolver: lts-3.0
2+
3+flags:
4+ yaml:
5+ no-examples: false
yaml.cabal+5−1
@@ -29,6 +29,10 @@ flag no-exe
2929 description: don't install the yaml2json or json2yaml executables
3030 default: False
3131
32+flag no-examples
33+ description: don't build the examples
34+ default: True
35+
3236flag system-libyaml
3337 description: Use the system-wide libyaml instead of the bundled copy
3438 default: False
@@ -134,7 +138,7 @@ test-suite spec
134138 ghc-options: -Wall
135139
136140executable examples
137− if flag(no-exe)
141+ if flag(no-examples)
138142 Buildable: False
139143 else
140144 Buildable: True