can't understand the Cabal manual. flag, manual
 
            Hello. http://www.haskell.org/cabal/users-guide/developing-packages.html#package-de... {{{ manual: boolean (default: False) By default, Cabal will first try to satisfy dependencies with the default flag value and then, if that is not possible, with the negated value. However, if the flag is manual, then the default value (which can be overridden by commandline flags) will be used. }}} Can I interpret this as {{{ First, Cabal tries to satisfy dependencies with the default flag value. Second, if the flag is manual, Cabal tries to satisfy dependencies with the negated flag value. }}} ? {{{ This file should contain of a number global property descriptions and several sections. }}} Maybe it's my English, but I can only think of "descriptions of global properties of a number" which does not make sense.
 
            On Fri, Nov 23, 2012 at 9:25 AM, Roman Beslik 
{{{ manual: boolean (default: False) By default, Cabal will first try to satisfy dependencies with the default flag value and then, if that is not possible, with the negated value. However, if the flag is manual, then the default value (which can be overridden by commandline flags) will be used. }}} Can I interpret this as {{{ First, Cabal tries to satisfy dependencies with the default flag value. Second, if the flag is manual, Cabal tries to satisfy dependencies with the negated flag value. }}} ?
That describes it in the default case. The point is more that it will try all possibilities for a flag which is not "manual: True" but only use the exact setting specified in the latter case.
{{{ This file should contain of a number global property descriptions and several sections. }}} Maybe it's my English
The author typoed or possibly had an editing accident, I think; the words are scrambled. Native English speakers may well do what I did the first time and correct it without noticing. "This file should contain a number of global property descriptions...." -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix/linux, openafs, kerberos, infrastructure http://sinenomine.net
 
            On 23.11.12 16:33, Brandon Allbery wrote:
On Fri, Nov 23, 2012 at 9:25 AM, Roman Beslik
mailto:rabeslik@gmail.com> wrote: {{{ manual: boolean (default: False) By default, Cabal will first try to satisfy dependencies with the default flag value and then, if that is not possible, with the negated value. However, if the flag is manual, then the default value (which can be overridden by commandline flags) will be used. }}} Can I interpret this as {{{ First, Cabal tries to satisfy dependencies with the default flag value. Second, if the flag is manual, Cabal tries to satisfy dependencies with the negated flag value. }}} ?
That describes it in the default case. The point is more that it will try all possibilities for a flag which is not "manual: True" but only use the exact setting specified in the latter case. Sorry, I still don't get it.
 
            On Fri, Nov 23, 2012 at 9:18 AM, Roman Beslik 
On 23.11.12 16:33, Brandon Allbery wrote:
That describes it in the default case. The point is more that it will try all possibilities for a flag which is not "manual: True" but only use the exact setting specified in the latter case.
Sorry, I still don't get it.
When "manual" is set the solver won't try other values of the flag aside from the default. Antoine
 
            Then my interpretation is correct? On 23.11.12 18:48, Antoine Latter wrote:
On Fri, Nov 23, 2012 at 9:18 AM, Roman Beslik
wrote: On 23.11.12 16:33, Brandon Allbery wrote:
That describes it in the default case. The point is more that it will try all possibilities for a flag which is not "manual: True" but only use the exact setting specified in the latter case.
Sorry, I still don't get it.
When "manual" is set the solver won't try other values of the flag aside from the default.
 
            On Fri, Nov 23, 2012 at 2:25 PM, Roman Beslik 
http://www.haskell.org/cabal/users-guide/developing-packages.html#package-de... {{{ manual: boolean (default: False) By default, Cabal will first try to satisfy dependencies with the default flag value and then, if that is not possible, with the negated value. However, if the flag is manual, then the default value (which can be overridden by commandline flags) will be used. }}} Can I interpret this as {{{ First, Cabal tries to satisfy dependencies with the default flag value. Second, if the flag is manual, Cabal tries to satisfy dependencies with the negated flag value. }}} ?
My understanding is that you want the negation of this (i.e. "Second, if the flag is /not/ manual [...]"). The idea being, if manual: True, then the setting can only be changed manually (using -f flags to the cabal command), not by the dependency solver.
 
            On 24.11.12 18:22, Ben Millwood wrote:
On Fri, Nov 23, 2012 at 2:25 PM, Roman Beslik
wrote: http://www.haskell.org/cabal/users-guide/developing-packages.html#package-de... {{{ manual: boolean (default: False) By default, Cabal will first try to satisfy dependencies with the default flag value and then, if that is not possible, with the negated value. However, if the flag is manual, then the default value (which can be overridden by commandline flags) will be used. }}} Can I interpret this as {{{ First, Cabal tries to satisfy dependencies with the default flag value. Second, if the flag is manual, Cabal tries to satisfy dependencies with the negated flag value. }}} ?
My understanding is that you want the negation of this (i.e. "Second, if the flag is /not/ manual [...]"). Yes, I have made this stupid mistake in my interpretation. :)
participants (4)
- 
                 Antoine Latter Antoine Latter
- 
                 Ben Millwood Ben Millwood
- 
                 Brandon Allbery Brandon Allbery
- 
                 Roman Beslik Roman Beslik