Skip to content

Commit edb2eab

Browse files
committed
add warning bools test
1 parent d5cc60e commit edb2eab

4 files changed

Lines changed: 46 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# cabal build
2+
Resolving dependencies...
3+
Build profile: -w ghc-<GHCVER> -O1
4+
In order, the following will be built:
5+
- test-0.1 (lib) (first run)
6+
Configuring library for test-0.1...
7+
Preprocessing library for test-0.1...
8+
Building library for test-0.1...
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
packages: .
2+
3+
build-info: true
4+
optimization: tRuE
5+
6+
package test
7+
flags: -bar
8+
flags: -baz
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import Test.Cabal.Prelude
2+
3+
main = cabalTest $ do
4+
cabal "build" []
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
cabal-version: 3.0
2+
name: test
3+
version: 0.1
4+
license: BSD-3-Clause
5+
build-type: Simple
6+
7+
flag bar
8+
default: true
9+
manual: True
10+
11+
flag baz
12+
default: TRUE
13+
manual: True
14+
15+
flag quux
16+
default: false
17+
manual: False
18+
19+
flag quuux
20+
default: FALSE
21+
manual: false
22+
23+
Library
24+
default-language: Haskell2010
25+
if flag(bar) || flag (baz)
26+
buildable: false

0 commit comments

Comments
 (0)