<p>Would it be simpler to not use the version at all for calculating installed package ABI identity?</p>
<p>You could still show it, though.</p>
<div class="gmail_quote">On Oct 3, 2011 6:19 AM, &quot;Joachim Breitner&quot; &lt;<a href="mailto:mail@joachim-breitner.de">mail@joachim-breitner.de</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I’d like to propose that the package (shown by &quot;ghc-pkg field &lt;pkg&gt; id&quot;<br>
and used by &quot;ghc-pkg field &lt;pkg&gt; depends&quot;) should only consist of the<br>
first three components of the package version, not all of them.<br>
<br>
By the package versioning policy, if the API stays the same, these<br>
version numbers stay identical. And if the change does not affect the<br>
ABI, the hash stays the same. This would allow upgrades of the package<br>
without having to re-build everything depending on it.<br>
<br>
And if the maintainer does not fully follow the PVP, then it is not a<br>
big deal either; the hash will change and Cabal will enforce rebuilds.<br>
<br>
<br>
One could argue that the version can be removed entirely from the<br>
package id, but it helps the human reader when looking at the &quot;depends&quot;<br>
field of a package.<br>
<br>
<br>
Greetings,<br>
Joachim<br>
<br>
--<br>
Joachim &quot;nomeata&quot; Breitner<br>
  <a href="mailto:mail@joachim-breitner.de">mail@joachim-breitner.de</a>  |  <a href="mailto:nomeata@debian.org">nomeata@debian.org</a>  |  GPG: 0x4743206C<br>
  xmpp: <a href="mailto:nomeata@joachim-breitner.de">nomeata@joachim-breitner.de</a> | <a href="http://www.joachim-breitner.de/" target="_blank">http://www.joachim-breitner.de/</a><br>
<br>
<br>_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/libraries" target="_blank">http://www.haskell.org/mailman/listinfo/libraries</a><br>
<br></blockquote></div>