From b8aac0691ae1982756baf3195424eb54e3cf22f5 Mon Sep 17 00:00:00 2001
From: Mikhail Glushenkov <mikhail.glushenkov@gmail.com>
Date: Tue, 21 Oct 2014 22:52:41 +0200
Subject: [PATCH] Document flag constraints.

---
 Cabal/doc/installing-packages.markdown | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/Cabal/doc/installing-packages.markdown b/Cabal/doc/installing-packages.markdown
index 48c1e60d5c..652b10e9ec 100644
--- a/Cabal/doc/installing-packages.markdown
+++ b/Cabal/doc/installing-packages.markdown
@@ -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 ##
 
-- 
GitLab