
18 Dec
2017
18 Dec
'17
1:45 p.m.
Hi Clinton,
2. Automatically apply appropriate version bounds to dependencies in my cabal file based on those snapshots.
I've never used 'stack', but I think it mostly boils down to setting the appropriate snapshot dependency constraints and ghc version for the 'cabal' run and therefore 'cabal-bounds'[1] should work in the same way as for a direct 'cabal' run. 'cabal-bounds' only widdens the version bounds of a dependency, so calling it for builds of multiple 'stack' snapshots should work. So building your package for each snapshot and just calling 'cabal-bounds update' might just work. Greetings, Daniel [1] https://github.com/dan-t/cabal-bounds