on e94de40 help sign in
haskell.nix/test/project-flags/test-project-flags.cabal
28 lines 792 B history raw
1cabal-version: >=1.10
2name: test-project-flags
3version: 0.1.0.0
4license: PublicDomain
5author: Hamish Mackenzie
6maintainer: Hamish.Mackenzie@iohk.io
7build-type: Simple
9flag test-flag
10 description: A flag that needs to be turned on
11 default: False
13library
14 build-depends: base >=4.7 && <5
15 exposed-modules: Lib
16 hs-source-dirs: src
17 default-language: Haskell2010
18 if flag(test-flag)
19 cpp-options: -DTEST_FLAG
21executable test-project-flags-exe
22 main-is: Main.hs
23 build-depends: base >=4.7 && <5, test-project-flags
24 hs-source-dirs: app
25 ghc-options: -threaded -rtsopts -with-rtsopts=-N
26 default-language: Haskell2010
27 if flag(test-flag)
28 cpp-options: -DTEST_FLAG