until -package:foundation -package:ghc -package:free -package:cabal-install-solver package:ghc-lib-parser

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