Dear Cafe,<div><br></div><div>What would be the easiest way of generating the following output, given a package name optionally with additional constraints?</div><div><br></div><div>$- foo &quot;X &gt; 3&quot;</div><div>&quot;X &gt; 3&quot; depends on A-2.2, B-1.0, C-1.2</div>

<div>A-2.2 depends on D-1.2.3</div><div>...<br clear="all"><div><br></div><div>I assume cabal-install internally does this anyway while creating the installation plan, so is there an easy way to get this info out of cabal install?</div>

<div><br></div><div>Thanks,</div><div>Ozgur</div><div><br></div>
</div>