hackage-cli icon indicating copy to clipboard operation
hackage-cli copied to clipboard

Fix adding bounds to library with common stanza

Open Bodigrim opened this issue 4 months ago • 3 comments

Fixes #26.

I had to sacrifice --message feature, which in my view is an acceptable trade off.

Bodigrim avatar Aug 31 '25 21:08 Bodigrim

Thanks @Bodigrim !

Looks like cabal-add is missing from Stackage nightly. (It is also missing from older LTSs, but I guess nothing can done about that but adding it as an extra-dep to the respective stack.yaml files.)

Can you reenable cabal-add in Stackage? I like my dependencies to be in Stackage.

andreasabel avatar Sep 01 '25 09:09 andreasabel

cabal-add used to be in https://www.stackage.org/lts-24.8, but fall out of Nightly because of cabal-install-parsers. I can probably work around it, but I suppose there is a bigger issue: are we happy to drop GHC < 9.2?

Techinically cabal-add could have supported old GHCs, but it's kinda pointless to proclaim compatibility with, say, GHC 8.2, but require Cabal 3.8. And supporting old Cabals is problematic.

Bodigrim avatar Sep 01 '25 19:09 Bodigrim

but I suppose there is a bigger issue: are we happy to drop GHC < 9.2?

Yes, that should be fine. hackage-cli is mostly an executable, and there is no good reason to keep a long tail of old GHCs in case they become troublesome.

andreasabel avatar Sep 01 '25 21:09 andreasabel