diff --git a/Cabal/doc/developing-packages.markdown b/Cabal/doc/developing-packages.markdown index 932384fd6b6feb62543d928924a755b8e2eec368..d6bc67989869f4ca58183cc97a76a626c12620a2 100644 --- a/Cabal/doc/developing-packages.markdown +++ b/Cabal/doc/developing-packages.markdown @@ -1721,6 +1721,20 @@ The following tests are currently supported. version constraint, then this evaluates to true, otherwise false. The match is case-insensitive. + Note that including a version constraint in an `impl` test causes it + to check for two properties: + + * The current compiler has the specified name, and + + * The compiler's version satisfied the specified version constraint + + As a result, `!impl(ghc >= x.y.z)` is not entirely equivalent to + `impl(ghc < x.y.z)`. The test `!impl(ghc >= x.y.z)` checks that: + + * The current compiler is not GHC, or + + * The version of GHC is earlier than version x.y.z. + `flag(`_name_`)` : Evaluates to the current assignment of the flag of the given name. Flag names are case insensitive. Testing for flags that have not