on master help sign in
Disable examples by default
fa3af0dMichael Snoyman
stack.yaml+4
@@ -1 +1,5 @@
1resolver: lts-3.0
1resolver: lts-3.0
2+
3+flags:
4+ yaml:
5+ no-examples: false
yaml.cabal+5−1
@@ -29,6 +29,10 @@ flag no-exe
29 description: don't install the yaml2json or json2yaml executables
29 description: don't install the yaml2json or json2yaml executables
30 default: False
30 default: False
31
31
32+flag no-examples
33+ description: don't build the examples
34+ default: True
35+
32flag system-libyaml
36flag system-libyaml
33 description: Use the system-wide libyaml instead of the bundled copy
37 description: Use the system-wide libyaml instead of the bundled copy
34 default: False
38 default: False
@@ -134,7 +138,7 @@ test-suite spec
134 ghc-options: -Wall
138 ghc-options: -Wall
135
139
136executable examples
140executable examples
137− if flag(no-exe)
141+ if flag(no-examples)
138 Buildable: False
142 Buildable: False
139 else
143 else
140 Buildable: True
144 Buildable: True