Join GitHub today
separate preferred versions into hacks and real preferred versions #476
We have the "preferred-versions" file in the hackage index. This is used by cabal-install. It has a dual purpose which we should try to separate.
The first is for things like "base < 4", to make up for the fact that so many older packages do not specify a version of base. This is basically a hack. It's not that we really would prefer people to use base 3.
On the other hand it is useful to be able to put experimental versions of packages on hackage and not have them be the default version. For example
So it would be useful to separate the hacks from the real preferred versions. The cabal-install tool might treat the two slightly differently and the hackage db website should only consider the latter.