Create changelogs for 3.14.1.0 (#10591)
[cabal.git] / Cabal-tests / tests / ParserTests / regressions / common-conditional.cabal
blobcc799d32d1b15fe92ed2f6350816637cb0bcc6b2
1 cabal-version:       3.0
2 name:                common-conditional
3 version:             0
4 synopsis:            Common-stanza demo demo
5 build-type:          Simple
7 source-repository head
8   Type:     git
9   Location: https://github.com/hvr/-.git
11 flag foo
12   manual: True
13   default: True
15 common win-dows
16   if os(windows)
17     build-depends: Win32
19 common deps
20   import: win-dows
21   buildable: True
22   build-depends:
23     base >=4.10 && <4.11,
24     containers
26 library
27   if flag(foo)
28     import: deps
30   default-language: Haskell2010
31   exposed-modules:  ElseIf
33   build-depends:
34     ghc-prim
36 test-suite tests
37   -- buildable fields verify that we don't have duplicate field warnings
38   buildable: True
39   if os(windows)
40     buildable: False
42   if flag(foo)
43     import: deps, win-dows
45   type: exitcode-stdio-1.0
46   main-is: Tests.hs
48   build-depends:
49     HUnit