<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 15, 2017 at 12:10 PM, 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"><span class="">|  at this point in time Stackage works<br>
|  hard to ensure that in any given package set, there is *exactly one*<br>
|  version of any package. That's why Stackage aligns versions of core<br>
|  packages to whatever ships with the GHC version the package set is<br>
|  based on.<br>
<br>
</span>Ah. It follows that if Stackage wants to find a set of packages compatible with GHC-X, then it must pick precisely the version of bytestring that GHC-X depends on.  (I'm assuming here that GHC-X fixes a particular version, even though bytestring is reinstallable?  Certainly, a /distribution/ of GHC-X will do so.)<br>
<br>
If meanwhile the bytestring author has decided to use a newer version of .cabal file syntax, then GHC-X is stuck with that.  Or would have to go back to an earlier version of bytestring, for which there might be material disadvantages.<br>
<br>
That would make it hard to GHC to guarantee to downstream tools that it doesn't depend on any packages whose .cabal files use new syntax; which is where this thread started.<br>
<br>
Hmm.  I wonder if I have understood this correctly.  Perhaps Michael would like to comment?<br>
<br><br></blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">Stackage does in fact pin snapshots down to precisely one version of each package. And in the case of non-reinstallable packages, it ensures that those package's transitive dependency set are pinned to the same version that ships with GHC. I know there's work around making more package reinstallable, and the ghc package itself may have crossed that line now, but for the moment Stackage assumes that the ghc package and all its dependencies are non-reinstallable. Therefore bytestring, process, containers, transformers, and many more will be pinned in a Stackage snapshot.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Michael<br></div></div>