File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1721,6 +1721,20 @@ The following tests are currently supported.
1721
1721
version constraint, then this evaluates to true, otherwise false.
1722
1722
The match is case-insensitive.
1723
1723
1724
+ Note that including a version constraint in an `impl` test causes it
1725
+ to check for two properties:
1726
+
1727
+ * The current compiler has the specified name, and
1728
+
1729
+ * The compiler's version satisfied the specified version constraint
1730
+
1731
+ As a result, `!impl(ghc >= x.y.z)` is not entirely equivalent to
1732
+ `impl(ghc < x.y.z)`. The test `!impl(ghc >= x.y.z)` checks that:
1733
+
1734
+ * The current compiler is not GHC, or
1735
+
1736
+ * The version of GHC is earlier than version x.y.z.
1737
+
1724
1738
` flag( ` _ name_ ` ) `
1725
1739
: Evaluates to the current assignment of the flag of the given name.
1726
1740
Flag names are case insensitive. Testing for flags that have not
You can’t perform that action at this time.
0 commit comments