can't understand the Cabal manual. flag, manual
Ben Millwood
haskell at benmachine.co.uk
Sat Nov 24 17:22:55 CET 2012
On Fri, Nov 23, 2012 at 2:25 PM, Roman Beslik <rabeslik at gmail.com> wrote:
> http://www.haskell.org/cabal/users-guide/developing-packages.html#package-descriptions
> {{{
> 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.
More information about the Libraries
mailing list