[Haskell-cafe] Getting containers updated in Stackage
ekmett at gmail.com
Mon Apr 3 05:58:20 UTC 2017
That doesn't work if you link against ghc the library. If I run
ghc-pkg describe ghc
on my slightly old install, it shows
array-0.5.1.1 base-126.96.36.199 binary-0.8.3.0 bytestring-0.10.8.1
containers-0.5.7.1 directory-188.8.131.52 filepath-184.108.40.206
ghc-boot-8.0.1 ghci-8.0.1 hoopl-220.127.116.11 hpc-0.6.0.3
process-18.104.22.168 template-haskell-22.214.171.124 time-126.96.36.199
If any of these are upgraded independently of ghc then every package that
depends on both ghc will start to fail to build due to needing to link two
versions of the same dependency. Examples of packages that depend on ghc
with wide distribution that lots of folks depend on in at least one
configuration of their builds? doctest
This makes this a fairly crippling distribution hazard for something like
stackage that runs the unit tests that comes with the packages it provides.
Back in the day ghc used to maintain its own forks of many of its
dependencies to avoid some of these sorts of issues. It doesn't do so any
On Sun, Apr 2, 2017 at 12:24 PM, David Feuer <david.feuer at gmail.com> wrote:
> What I'm suggesting is a bit narrower: I think stack should probably just
> ignore GHC boot packages altogether, aside from the necessary ones (I think
> just ghc-prim, ghc, base, and array, but you'd have to check the full GHC
> API to be sure). Never use them, and pretend they don't exist.
> On Apr 2, 2017 6:47 AM, "Adam Bergmark" <adam at bergmark.nl> wrote:
>> Hi David,
>> As far as I know stackage doesn't have a mechanism to say "this might
>> cause version mismatches but I promise it won't", is there even a way to do
>> that with Cabal (which stackage uses)?
>> On Sun, 2 Apr 2017 at 01:26 David Feuer <david.feuer at gmail.com> wrote:
>>> The fact that GHC needs to have its own containers shouldn't prevent a
>>> consistent package set from using a different one. The only hypothetical
>>> problem would be if the GHC API leaked containers types, but I'm pretty
>>> sure it doesn't: they're all wrapped up in newtypes and exported
>>> abstractly, unless someone's made a mistake.
>>> On Apr 1, 2017 6:09 PM, "Sven Panne" <svenpanne at gmail.com> wrote:
>>> 2017-04-01 20:53 GMT+02:00 David Feuer <david.feuer at gmail.com>:
>>> It's come to my attention that Stackage doesn't have the latest and
>>> greatest versions of containers. Stackage nightly is on 0.5.7.1, and I just
>>> released 0.5.10.2. It'd be nice to get that fixed, but the containers
>>> maintainers do not have the time to take responsibility for Stackage
>>> curation. Could whoever's responsible please take care of it?
>>> If I see this correctly, there is nothing to take care of: Stackage
>>> nightly and LTS both ship GHC 8.0.2, and that contains containers 0.5.7.1.
>>> When a new GHC is released and that ships with a new version of containers,
>>> it will be on Stackage. Apart from that, there is nothing you can do:
>>> Stackage is there to have a consistent set of packages, so containers is
>>> not even in https://github.com/fpco/stackage/blob/master/build-constrain
>>> ts.yaml, because it ships with GHC.
>>> That's at least my understanding...
>>> Haskell-Cafe mailing list
>>> To (un)subscribe, modify options or view archives go to:
>>> Only members subscribed via the mailman list are allowed to post.
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe