<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 11, 2016 at 11:53 AM, Tobias Dammers <span dir="ltr"><<a href="mailto:tdammers@gmail.com" target="_blank">tdammers@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":18l" class="a3s aXjCH m158eecda41a98edb">And, regarding feature toggles, this bit in the Cabal FAQ baffles me a<br>
little:<br>
<br>
> Question: I like to let the user enable extended functionality using a<br>
> Cabal flag. Is this the right way?<br>
><br>
> Answer: Certainly not. Since other packages can distinguish packages<br>
> only according to their name and their version, it is not a good idea<br>
> to allow different APIs for the same package version. Cumbersome as it<br>
> is you have to move extra features to a separate package.<br>
<br>
Moving the features to a separate package wouldn't really solve anything<br>
AFAICT, because I'd still have to bring them together somehow.<br></div></blockquote></div><br>This is the same as the variants problem with MacPorts: you can't have another port depend on a variant, because then dependency calculation (already nightmarish) gets a combinatorial explosion on top of all the existing problems.<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>