Commit 0e216786 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺 Committed by Austin Seipp

Cabal-level sanity check to enforce Cabal flag-invariant

This helps catch cabal-flag misconfiguration early on during `cabal
configure`, rather than much later in the build-process during
compilation.

Reviewed By: austin

Differential Revision: https://phabricator.haskell.org/D1423
parent 987d5427
...@@ -94,6 +94,11 @@ Library ...@@ -94,6 +94,11 @@ Library
Unsafe Unsafe
build-depends: rts == 1.0.*, ghc-prim == 0.5.* build-depends: rts == 1.0.*, ghc-prim == 0.5.*
-- sanity-check to ensure exactly one flag is set
if !((flag(integer-gmp) && !flag(integer-simple)) || (!flag(integer-gmp) && flag(integer-simple)))
build-depends: invalid-cabal-flag-settings<0
if flag(integer-simple) if flag(integer-simple)
build-depends: integer-simple >= 0.1.1 && < 0.2 build-depends: integer-simple >= 0.1.1 && < 0.2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment