Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
31af6ee6
Commit
31af6ee6
authored
Aug 17, 2016
by
Edward Z. Yang
Committed by
GitHub
Aug 17, 2016
Browse files
Merge pull request #3704 from RyanGlScott/doc2
Clarify what logical negation of impl with version ranges means
parents
c2c5d36b
f658805b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/doc/developing-packages.markdown
View file @
31af6ee6
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment