This is already merged upstreamed. See: https://github.com/haskell/cabal/pull/9062 Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>