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

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

Reviewed By: austin

Differential Revision:
parent 987d5427
......@@ -94,6 +94,11 @@ Library
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)
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