Update CabalRevisions module for Cabal-2.2
Update CabalRevisions module for Cabal-2.2

Cherry-picked from https://github.com/hackage-trustees/hackage-cli/pull/5

edsko/hackage-server,edsko/hackage-server