Fix compatibility with Cabal 3.2
Fix compatibility with Cabal 3.2

Follows the change in https://github.com/commercialhaskell/pantry/pull/22

Fixes the only build failure with Cabal 3.2
juhp/stack,juhp/stack