<div dir="ltr">Appending `--allow-newer=template-haskell` should tell cabal to ignore upper bounds on that package and consider more recent versions as well. In case the problem really just has to do with bounds and the code itself doesn't care, this should allow you to successfully build that package. You could also say `--allow-newer=exceptions:template-haskell` to ask cabal to ignore the upper bounds that the exceptions package puts on template-haskell. [1] has more to say about option.<div><br></div><div>[1]: <a href="https://cabal.readthedocs.io/en/stable/nix-local-build.html#cfg-flag---allow-newer">https://cabal.readthedocs.io/en/stable/nix-local-build.html#cfg-flag---allow-newer</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 28, 2018 at 9:33 AM, Simon Peyton Jones via ghc-devs <span dir="ltr"><<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="m_1294400862514523602WordSection1">
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">Trying to build the repro case in Trac #14208, I get this<u></u><u></u></span></p>
<p class="m_1294400862514523602Code">cabal install --with-ghc=/home/simonpj/<wbr>5builds/ghc-8.4-branch/<wbr>inplace/bin/ghc-stage2<u></u><u></u></p>
<p class="m_1294400862514523602Code">Warning: cannot determine version of /home/simonpj/.cabal/bin/c2hs :<u></u><u></u></p>
<p class="m_1294400862514523602Code">""<u></u><u></u></p>
<p class="m_1294400862514523602Code">Resolving dependencies...<u></u><u></u></p>
<p class="m_1294400862514523602Code">cabal: Could not resolve dependencies:<u></u><u></u></p>
<p class="m_1294400862514523602Code">trying: exceptions-0.8.3 (dependency of streamly)<u></u><u></u></p>
<p class="m_1294400862514523602Code">next goal: template-haskell (dependency of exceptions)<u></u><u></u></p>
<p class="m_1294400862514523602Code">rejecting: template-haskell-2.13.0.0/<wbr>installed-2.1... (conflict: exceptions =><u></u><u></u></p>
<p class="m_1294400862514523602Code">template-haskell>=2.2 && <2.13)<u></u><u></u></p>
<p class="m_1294400862514523602Code">rejecting: template-haskell-2.12.0.0, template-haskell-2.11.1.0,<u></u><u></u></p>
<p class="m_1294400862514523602Code">template-haskell-2.11.0.0, template-haskell-2.10.0.0,<u></u><u></u></p>
<p class="m_1294400862514523602Code">template-haskell-2.9.0.0, template-haskell-2.8.0.0, template-haskell-2.7.0.0,<u></u><u></u></p>
<p class="m_1294400862514523602Code">template-haskell-2.6.0.0, template-haskell-2.5.0.0, template-haskell-2.4.0.1,<u></u><u></u></p>
<p class="m_1294400862514523602Code">template-haskell-2.4.0.0, template-haskell-2.3.0.1, template-haskell-2.3.0.0,<u></u><u></u></p>
<p class="m_1294400862514523602Code">template-haskell-2.2.0.0 (constraint from non-upgradeable package requires<u></u><u></u></p>
<p class="m_1294400862514523602Code">installed instance)<u></u><u></u></p>
<p class="m_1294400862514523602Code">After searching the rest of the dependency tree exhaustively, these were the<u></u><u></u></p>
<p class="m_1294400862514523602Code">goals I've had most trouble fulfilling: template-haskell, exceptions,<u></u><u></u></p>
<p class="m_1294400862514523602Code">streamly, transformers, base<u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">This is with my in-place build of GHC-8.4 (in-place but not modified in any way).  I’ve done a ‘cabal upate’.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">What am I doing wrong?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">Thanks<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">Simon<u></u><u></u></span></p>
</font></span></div>
</div>

<br>______________________________<wbr>_________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/ghc-devs</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Alp Mestanogullari</div>
</div>