Any ways to test a GHC build against large set of packages (including test suites)?
Herbert Valerio Riedel
hvriedel at gmail.com
Fri Aug 10 09:29:24 UTC 2018
On Fri, Aug 10, 2018 at 11:05 AM Artem Pelenitsyn
<a.pelenitsyn at gmail.com> wrote:
> The task seems to be not solvable even if an affected package (stm in your case and primitive in mine) has already adopted in its master the breaking change but has no corresponding release on Hackage (which will always be the case, because how would you release depending on base which hasn't been released yet).
> Some package managers in other languages (Julia's Pkg, go install) allow you to depend directly on master branch of a package if you wish to. I wonder if there is a road here for cabal to take in order to support this kind of unsafe installs.
As a matter of fact we have a couple of options here:
- Add the http://cand.hackage.haskell.org/ package index to your
config and get access to the stm-18.104.22.168 package release candidate
- We could have added `stm-22.214.171.124` to the head.hackage overlay (so
far the "overlay" has only modified existing packages from the primary
- Starting with cabal-2.4, we support adding package tarballs to
`cabal.project`; and this should work also for specifiying remote
tarball locations such as
- Starting with cabal 2.4, we do support remote git repo deps in
`cabal.project`, see e.g.
for an extensive real-world example.
There's work planned to refine/improve these options and make them
more convenient/expressive. Help is appreciated if somebody wants to
help us get there sooner.
More information about the ghc-devs