<div dir="ltr">I don't think this would be a good default for CircleCI. If you can install your dependencies once, then you can run `cabal freeze` and check in the resulting cabal.config which will allow cabal to install the packages immediately.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 23, 2015 at 10:03 PM, Philip White <span dir="ltr"><<a href="mailto:philip@mailworks.org" target="_blank">philip@mailworks.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Thanks for the quick reply. With your arguments, it worked! But that cabal invocation (without the add'l args) is set by CircleCI.<div><br></div><div>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><div class="h5"><div><br></div><div><div><div><br><div><blockquote type="cite"><div>On Jun 23, 2015, at 9:47 PM, Michael Snoyman <<a href="mailto:michael@snoyman.com" target="_blank">michael@snoyman.com</a>> wrote:</div><br><div><div dir="ltr">I answered on Stack Overflow, but copying here:<br><br>This looks like a typical cabal dependency solver shortcoming. Can you try running again with `--max-backjumps=-1 --reorder-goals`?<br></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jun 24, 2015 at 7:07 AM Philip White <<a href="mailto:philip@mailworks.org" target="_blank">philip@mailworks.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello, all,<br>
<br>
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>
<br>
Circle CI runs the following commands:<br>
cabal sandbox init<br>
cabal install --upgrade-dependencies --constraint="template-haskell installed" --dependencies-only --enable-tests<br>
<br>
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>
<br>
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>
<br>
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">http://stackoverflow.com/questions/31010999/cabal-cannot-resolve-dependencies-chooses-wrong-version-of-containers</a><br>
<br>
The github repo, for ease of reproducing the problem: <a href="https://github.com/philipmw/yesod-website" rel="noreferrer" target="_blank">https://github.com/philipmw/yesod-website</a><br>
<br>
I hope that someone on the list is able to help. Thanks.<br>
<br>
--<br>
Philip<br>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote></div>
</div></blockquote></div><br></div></div></div></div></div></div><br>_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
<br></blockquote></div><br></div>