<div dir="ltr">You can force this with cabal using --constraint "persistent-template=2.2.2" or the equivalent.<div><br></div><div>But these kinds of dependency solving problems are the primary reason I recommend using a Stackage snapshot[1]. If you switch over to building with Stack[2], you'll get that behavior by default.</div><div><br></div><div>[1] <a href="https://www.stackage.org/" target="_blank">https://www.stackage.org/</a></div><div>[2] <a href="http://haskellstack.org/" target="_blank">http://haskellstack.org/</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 2, 2016 at 12:04 PM, Miro Karpis <span dir="ltr"><<a href="mailto:miroslav.karpis@gmail.com" target="_blank">miroslav.karpis@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 dir="ltr">Please,..can you help me with following?<div><br></div><div>I'm trying to install both persistent-postgresql together with persistent-template, but I keep getting:</div><div><font face="times new roman, serif"><br></font></div><div><font face="times new roman, serif"><br></font></div><font face="times new roman, serif">mac:~ miro$ cabal install persistent-template<br>Resolving dependencies...<br>In order, the following would be installed:<br>aeson-0.9.0.1 (latest: 0.11.0.0) (via: persistent-template-2.1.5 persistent-2.2.4 aeson-compat-0.3.1.0) (new version)<br>aeson-compat-0.3.1.0 (via: persistent-template-2.1.5) (new package)<br>persistent-2.2.4 (via: persistent-template-2.1.5) (reinstall) (changes: aeson-0.11.0.0 -> 0.9.0.1)<br>persistent-template-2.1.5 (new package)<br>cabal: The following packages are likely to be broken by the reinstalls:<br>persistent-postgresql-2.2.2<br>Use --force-reinstalls if you want to install anyway.</font><div><font face="times new roman, serif"><br></font></div><div><br></div><div><br></div><div>If I continue with force-reinstall then I broke postgresql. Is there a way to force persistent-template to use 2.2.2 version (I know if I download it and change the dep. in cabal file,....but is that what I should do :) )?<font face="times new roman, serif"><br></font></div><div><br></div><div><div><font face="arial, helvetica, sans-serif"><br><br></font></div><div><font face="arial, helvetica, sans-serif">running on:</font></div><font face="times new roman, serif">mac:~ miro$ cabal --version</font><div><font face="times new roman, serif">cabal-install version 1.22.8.0<br>using version 1.22.7.0 of the Cabal library</font></div><div><font face="times new roman, serif"><br></font></div><font face="times new roman, serif">mac:~ miro$ ghc --version<br>The Glorious Glasgow Haskell Compilation System, version 7.10.3</font><br></div><div><font face="times new roman, serif"><br></font></div><div><font face="times new roman, serif"><br></font></div><div>cheers,</div><div>m.</div><div><br></div><div><br></div></div>
<br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div></div>