<div dir="ltr"><br><br><div class="gmail_quote">On Wed, Mar 25, 2015 at 4:30 PM Anthony Cowley <<a href="mailto:acowley@seas.upenn.edu">acowley@seas.upenn.edu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Mar 25, 2015 at 10:24 AM, Michael Snoyman <<a href="mailto:michael@snoyman.com" target="_blank">michael@snoyman.com</a>> wrote:<br>
><br>
><br>
> On Wed, Mar 25, 2015 at 4:17 PM Anthony Cowley <<a href="mailto:acowley@seas.upenn.edu" target="_blank">acowley@seas.upenn.edu</a>><br>
> wrote:<br>
>><br>
>> The suggestion to use "cabal install --dependencies-only ..." instead<br>
>> of "cabal freeze" in that issue is really nicely presented. "cabal<br>
>> freeze" is close to the right thing, but it's just not as fully<br>
>> featured as "cabal install" (e.g. taking flags).<br>
>><br>
>> As for Stackage, I think it would be helpful to cache the full build<br>
>> plans computed for each package in Stackage. This is most of the work<br>
>> my Nix tooling currently does, so it would be a big time saver.<br>
>><br>
>><br>
><br>
> By "full build plans," do you mean the dist/setup-config file, or something<br>
> else? That file would be problematic since it's Cabal-library-version<br>
> specific IIRC. If you're looking for the full listing of deep dependencies<br>
> and versions, we can extract that from the .yaml file using the technique I<br>
> mentioned earlier.<br>
><br>
> Michael<br>
<br>
Yes, I meant the full listing of deep dependencies.<br>
<br><br></blockquote><div><br></div><div>I've put together a Gist with an executable that does what I described:</div><div><br></div><div><a href="https://gist.github.com/snoyberg/5b244331533fcb614523">https://gist.github.com/snoyberg/5b244331533fcb614523</a></div><div><br></div><div>You give it three arguments on the command line:</div><div><br></div><div>* LTS version, e.g. 1.14</div><div>* Name of package being checked</div><div>* true == only include dependencies of the library and executable, anything else == include test and benchmark dependencies as well</div><div><br></div><div>If that's useful, I can package that up and put it on Hackage.</div><div><br></div><div>MichaelĀ </div></div></div>