<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks for the quick reply. With your arguments, it worked! But that cabal invocation (without the add'l args) is set by CircleCI.<div class=""><br class=""></div><div class="">From my brief research, both of the arguments you suggest result in more successful dependency resolutions, at the potential expense of time. Sounds like a good case for CircleCI to start passing these arguments to all Haskell projects by default. I'll contact them about this.</div><div class=""><br class=""></div><div class=""><div class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jun 23, 2015, at 9:47 PM, Michael Snoyman <<a href="mailto:michael@snoyman.com" class="">michael@snoyman.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I answered on Stack Overflow, but copying here:<br class=""><br class="">This looks like a typical cabal dependency solver shortcoming. Can you try running again with `--max-backjumps=-1 --reorder-goals`?<br class=""></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Wed, Jun 24, 2015 at 7:07 AM Philip White <<a href="mailto:philip@mailworks.org" class="">philip@mailworks.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello, all,<br class="">
<br class="">
I am trying to make the next big thing with Yesod -- but for now, just a Hello World website. After getting it running locally, I tried to integrate it with Circle CI, which has support for cabal-based Haskell projects.<br class="">
<br class="">
Circle CI runs the following commands:<br class="">
cabal sandbox init<br class="">
cabal install --upgrade-dependencies --constraint="template-haskell installed" --dependencies-only --enable-tests<br class="">
<br class="">
With this invocation, cabal cannot resolve dependencies no matter how I change the cabal config. If, however, I run just `cabal install`, everything works.<br class="">
<br class="">
This cabal failure occurs both on a CircleCI host and my laptop exactly the same way, so I know it's not my environment.<br class="">
<br class="">
I wrote a StackOverflow question with more details: <a href="http://stackoverflow.com/questions/31010999/cabal-cannot-resolve-dependencies-chooses-wrong-version-of-containers" rel="noreferrer" target="_blank" class="">http://stackoverflow.com/questions/31010999/cabal-cannot-resolve-dependencies-chooses-wrong-version-of-containers</a><br class="">
<br class="">
The github repo, for ease of reproducing the problem: <a href="https://github.com/philipmw/yesod-website" rel="noreferrer" target="_blank" class="">https://github.com/philipmw/yesod-website</a><br class="">
<br class="">
I hope that someone on the list is able to help. Thanks.<br class="">
<br class="">
--<br class="">
Philip<br class="">
_______________________________________________<br class="">
Libraries mailing list<br class="">
<a href="mailto:Libraries@haskell.org" target="_blank" class="">Libraries@haskell.org</a><br class="">
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank" class="">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br class="">
</blockquote></div>
</div></blockquote></div><br class=""></div></div></div></body></html>