<div dir="ltr">Hi again Simon,<div><br></div><div>While `<span style="font-size:12.8px;color:rgb(80,0,80)">stack dot --external --depth 0` gets the job done, I had a little play around with the idea of finding the initial nodes on the implicit dependency graph, rather than a traversal from the initial dependency list, and the results for this project are quite a bit shorter:</span></div><div><span style="font-size:12.8px;color:rgb(80,0,80)"><br></span></div><div><div style=""><font color="#500050"><span style="font-size:12.8px">lyndon@endpin  master ✔ ~/Silverpond/promise_backend stack dot --external | grep -v PromiseBackend | stack-minimal-dependencies-exe</span></font></div><div style=""><font color="#500050"><span style="font-size:12.8px">Right (fromList [Node "StringId \"errors\""</span></font></div><div style=""><font color="#500050"><span style="font-size:12.8px">                        ,Node "StringId \"snap\""</span></font></div><div style=""><font color="#500050"><span style="font-size:12.8px">                        ,Node "StringId \"wreq\""])</span></font></div></div><div style=""><font color="#500050"><span style="font-size:12.8px"><br></span></font></div><div style=""><font color="#500050"><div style="font-size:12.8px">lyndon@endpin  master ✔ ~/Silverpond/promise_backend stack dot --external --depth=0</div><div style="font-size:12.8px">strict digraph deps {</div><div style="font-size:12.8px">"PromiseBackend" [style=dashed];</div><div style="font-size:12.8px">"PromiseBackend" -> "aeson";</div><div style="font-size:12.8px">"PromiseBackend" -> "base";</div><div style="font-size:12.8px">"PromiseBackend" -> "bytestring";</div><div style="font-size:12.8px">"PromiseBackend" -> "containers";</div><div style="font-size:12.8px">"PromiseBackend" -> "errors";</div><div style="font-size:12.8px">"PromiseBackend" -> "lens";</div><div style="font-size:12.8px">"PromiseBackend" -> "lens-aeson";</div><div style="font-size:12.8px">"PromiseBackend" -> "mtl";</div><div style="font-size:12.8px">"PromiseBackend" -> "snap";</div><div style="font-size:12.8px">"PromiseBackend" -> "text";</div><div style="font-size:12.8px">"PromiseBackend" -> "transformers";</div><div style="font-size:12.8px">"PromiseBackend" -> "unordered-containers";</div><div style="font-size:12.8px">"PromiseBackend" -> "wreq";</div><div style="font-size:12.8px">}</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Not that it really matters, but thought it might be interesting for anyone who was following this thread.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The code I used to compute this is awful, and lives here: </div><div style="font-size:12.8px"><br></div><div style=""><span style="font-size:12.8px"><a href="https://github.com/sordina/stack-minimal-dependencies/blob/master/app/Main.hs">https://github.com/sordina/stack-minimal-dependencies/blob/master/app/Main.hs</a></span><br></div><div style=""><span style="font-size:12.8px"><br></span></div><div style=""><span style="font-size:12.8px">:)</span></div><div style=""><span style="font-size:12.8px"><br></span></div><div style=""><span style="font-size:12.8px"><br></span></div><div style=""><span style="font-size:12.8px">Later!</span></div><div style=""><span style="font-size:12.8px"><br></span></div><div style=""><span style="font-size:12.8px"> - Lyndon</span></div></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 25, 2016 at 10:58 AM, Lyndon Maydwell <span dir="ltr"><<a href="mailto:maydwell@gmail.com" target="_blank">maydwell@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Simon,<span class=""><div><br></div><div><br></div><div>> <span style="font-size:12.8px">stack dot --external --depth 0</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div></span><div>That's exactly what I was first looking for!</div><div><br></div><div>Cheers :)</div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><div> - Lyndon</div></font></span></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Feb 25, 2016 at 9:55 AM, Simon Jakobi <span dir="ltr"><<a href="mailto:simon.jakobi@googlemail.com" target="_blank">simon.jakobi@googlemail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Hi Lyndon,</div><span><div class="gmail_quote"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I'd like to see some kind of tree instead, so that when I pre-install the dependencies, I can specify a minimal list, rather than a whole slew of dependencies that would be pulled in transitively anyway.</blockquote></div><div class="gmail_extra"><br></div></span>There's "stack list-dependencies" but that includes the transitive dependencies.</div><div class="gmail_extra"><br></div><div class="gmail_extra">You can get the dependency tree (or rather dependency graph) with "stack dot --external"</div><div class="gmail_extra"><br>"stack dot --external --depth 0" will show only the direct dependencies of your project.</div><div class="gmail_extra"><br></div><div class="gmail_extra">More stack dot examples: <a href="http://docs.haskellstack.org/en/stable/dependency_visualization/" target="_blank">http://docs.haskellstack.org/en/stable/dependency_visualization/</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Cheers,</div><div class="gmail_extra">Simon</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>
<br></div></div><span class="">_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>