cabal
cabal copied to clipboard
Should cabal-install use text-2.0?
The question comes from Reddit. Perhaps it may bring some benefit? Even if only in terms of popularizing text-2.0...
It saves Nix build times if my dependency graphs do not have to depend on two versions of text whenever I want to try out new GHC versions (for which I need to compile most of the packages locally)
cabal-install does not really use Text much, it can certainly relax text bounds.
We have
text (>= 1.2.3.0 && < 1.3) || (>= 2.0 && < 2.1),
in Cabal.cabal on branch master, so it's probably only cabal-install.cabal that is excluding text 2 and probably for no good reason.
I relaxed to text-2.0 locally, but it is not picked up by the constraint solver. AFICT, it is because we depend on Cabal-3.6: https://github.com/haskell/cabal/blob/a97e1f13bdb28a3f761d55845f14a9072bee17ca/cabal-testsuite/cabal-testsuite.cabal#L112-L117
Forcing it with -c text >= 2.0 it is used in most places, though, cabal-plan then only shows usage of text-1.2.5.0 for Cabal-3.6.3.0 then.
UPDATE: This feature would be great for my quest:
- #8387