Quoting Shachaf Ben-Kiki <shac...@gmail.com>:

You can put "constraint: bytestring == version" in ~/.cabal/config.
Alternatively you can run one `cabal install --constraint "bytestring
== version"` command.

Keep in mind the following subtle difference between this constraint and the "installed" constraint: this fixes a version, but doesn't fix a set of flags or dependencies' versions. So cabal may still rebuild bytestring if it discovers that changing either of these will make an otherwise failing constraint set succeed, whereas the "installed" constraint will force the package not to be rebuilt. On the other hand, if there are many versions of bytestring installed, the "installed" constraint does not fix any one of them as the exact version.

It can make sense to use both "== version" constraints and "installed" constraints at once.

~d

_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to