until -package:hedgehog -package:classy-prelude -package:base -package:rebase package:base-prelude

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