Make cabal01 pass with Cabal 1.18 (#8738).

Signed-off-by: Austin Seipp <austin@well-typed.com>