Use the cabal configuration flags where possible when finalizing the PackageDescription.

This commit is contained in:
Rob Everest
2014-09-10 22:23:36 +10:00
parent 274b5d8e1c
commit 2c2e7782d2
9 changed files with 66 additions and 16 deletions

View File

@@ -0,0 +1,14 @@
name: cabal-flags
version: 0.1.0
build-type: Simple
cabal-version: >= 1.8
flag test-flag
default: False
library
build-depends: base == 4.*
if flag(test-flag)
build-depends: Cabal >= 1.10