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
b8aac069
Commit
b8aac069
authored
Oct 21, 2014
by
Mikhail Glushenkov
Browse files
Document flag constraints.
parent
fbcac417
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/doc/installing-packages.markdown
View file @
b8aac069
...
...
@@ -760,10 +760,11 @@ be controlled with the following command line options.
For example,
`cabal install --constraint="bar==2.1"`
will only consider
install plans that do not use
`bar`
at all, or
`bar`
of version 2.1.
As a special case, `cabal install --constraint="bar -none"` prevents
`bar` from being used at all. (`-none` abbreviates `> 1 && < 1`)
`cabal install --constraint="bar installed"` prevents reinstallation
of the `bar` package.
As a special case, `cabal install --constraint="bar -none"` prevents `bar`
from being used at all (`-none` abbreviates `> 1 && < 1`); `cabal install
--constraint="bar installed"` prevents reinstallation of the `bar` package;
`cabal install --constraint="bar +foo -baz"` specifies that the flag `foo`
should be turned on and the `baz` flag should be turned off.
## setup build ##
...
...
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