See https://github.com/haskell/core-libraries-committee/issues/216.
This will be removed in GHC 9.12.