> Sharing your project would help, otherwise it’s hard to diagnose.

The project is https://github.com/dan-t/cabal-bounds. Cloning the current version
and building it with ghc-9.8.2, cabal-3.10.3.0 and ´cabal build —allow-newer´ should result in the
described error.

Greetings,
Daniel