until -package:base-compat -package:base -is:exact package:ghc -is:exact

until p f yields the result of applying f until p holds.