Commit 31af6ee6 authored by Edward Z. Yang's avatar Edward Z. Yang Committed by GitHub
Browse files

Merge pull request #3704 from RyanGlScott/doc2

Clarify what logical negation of impl with version ranges means
parents c2c5d36b f658805b
......@@ -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.
: Evaluates to the current assignment of the flag of the given name.
Flag names are case insensitive. Testing for flags that have not
Supports Markdown
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