<div dir="ltr">I use the global stack environment to install most executables, it works best when the package is in a snapshot of course. There is no need to change the global config, try this: stack install xmonad-contrib X11-xft-0.3.1 --resolver lts-8.4<div><br></div><div> You can also look for a stack.yaml in the repo of the executable and use that resolver + any extra deps on the command line, that'll most likely work even if the package isn't in a snapshot.</div><div><br></div><div>HTH,</div><div>Adam</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, 10 Mar 2017 at 18:56 Matt <<a href="mailto:parsonsmatt@gmail.com">parsonsmatt@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">Stack does have a notion of a global project, which it uses if you're not in a project directory. The error message you received:</div><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><span style="font-size:12.8px" class="gmail_msg"> Error: While constructing the build plan, the following exceptions</span><br style="font-size:12.8px" class="gmail_msg"><span style="font-size:12.8px" class="gmail_msg"> were encountered:</span><br style="font-size:12.8px" class="gmail_msg"><br style="font-size:12.8px" class="gmail_msg"><span style="font-size:12.8px" class="gmail_msg"> In the dependencies for xmonad-contrib-0.13:</span><br style="font-size:12.8px" class="gmail_msg"><span style="font-size:12.8px" class="gmail_msg"> X11-xft must match >=0.2, but the stack configuration has no</span><br style="font-size:12.8px" class="gmail_msg"><span style="font-size:12.8px" class="gmail_msg"> specified version (latest applicable is 0.3.1)</span><br style="font-size:12.8px" class="gmail_msg"><br style="font-size:12.8px" class="gmail_msg"><span style="font-size:12.8px" class="gmail_msg"> Recommended action: try adding the following to your extra-deps in</span><br style="font-size:12.8px" class="gmail_msg"><span style="font-size:12.8px" class="gmail_msg"> /home/jun/.stack/global-</span><span style="font-size:12.8px" class="gmail_msg">project/stack.yaml:</span><br style="font-size:12.8px" class="gmail_msg"><span style="font-size:12.8px" class="gmail_msg"> - X11-xft-0.3.1</span><br class="gmail_msg"></div><div class="gmail_msg"><span style="font-size:12.8px" class="gmail_msg"><br class="gmail_msg"></span></div></div><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><span style="font-size:12.8px" class="gmail_msg">tells you how to make X11-xft-0.3.1 available to the global project, which should allow you to install xmonad-contrib into this global package.</span></div></div><div class="gmail_extra gmail_msg"><br clear="all" class="gmail_msg"><div class="gmail_msg"><div class="m_-7628445373323936610gmail_signature gmail_msg" data-smartmail="gmail_signature"><div dir="ltr" class="gmail_msg"><div class="gmail_msg">Matt Parsons</div></div></div></div></div><div class="gmail_extra gmail_msg">
<br class="gmail_msg"><div class="gmail_quote gmail_msg">On Fri, Mar 10, 2017 at 10:33 AM, Brandon Allbery <span dir="ltr" class="gmail_msg"><<a href="mailto:allbery.b@gmail.com" class="gmail_msg" target="_blank">allbery.b@gmail.com</a>></span> wrote:<br class="gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_extra gmail_msg"><span class="gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg">On Fri, Mar 10, 2017 at 12:28 PM, Jun Inoue <span dir="ltr" class="gmail_msg"><<a href="mailto:jun.lambda@gmail.com" class="gmail_msg" target="_blank">jun.lambda@gmail.com</a>></span> wrote:<br class="gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am I fundamentally misunderstanding how stack is supposed to be used?</blockquote></div><br class="gmail_msg"></span>Stack is not a package manager. It is a reproducible builds tool. Ad hoc usage like you are doing is outside of its purview.</div><div class="gmail_extra gmail_msg"><br class="gmail_msg"></div><div class="gmail_extra gmail_msg">Also, last I checked, for some reason xmonad-contrib wasn't in stackage, so stack's primary mechanism for avoiding conflicts fails.<span class="m_-7628445373323936610HOEnZb gmail_msg"><font color="#888888" class="gmail_msg"><br class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div>-- <br class="gmail_msg"><div class="m_-7628445373323936610m_7964020918830901031gmail_signature gmail_msg" data-smartmail="gmail_signature"><div dir="ltr" class="gmail_msg"><div class="gmail_msg">brandon s allbery kf8nh sine nomine associates</div><div class="gmail_msg"><a href="mailto:allbery.b@gmail.com" class="gmail_msg" target="_blank">allbery.b@gmail.com</a> <a href="mailto:ballbery@sinenomine.net" class="gmail_msg" target="_blank">ballbery@sinenomine.net</a></div><div class="gmail_msg">unix, openafs, kerberos, infrastructure, xmonad <a href="http://sinenomine.net" class="gmail_msg" target="_blank">http://sinenomine.net</a></div></div></div>
</font></span></div></div>
<br class="gmail_msg">_______________________________________________<br class="gmail_msg">
Haskell-Cafe mailing list<br class="gmail_msg">
To (un)subscribe, modify options or view archives go to:<br class="gmail_msg">
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" class="gmail_msg" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br class="gmail_msg">
Only members subscribed via the mailman list are allowed to post.<br class="gmail_msg"></blockquote></div><br class="gmail_msg"></div>
_______________________________________________<br class="gmail_msg">
Haskell-Cafe mailing list<br class="gmail_msg">
To (un)subscribe, modify options or view archives go to:<br class="gmail_msg">
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" class="gmail_msg" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br class="gmail_msg">
Only members subscribed via the mailman list are allowed to post.</blockquote></div>