until -package:numeric-prelude -package:language-bash -package:base-compat -package:foundation -package:hledger-web -package:ghc-lib-parser -package:extra package:dunai

Similar to Yampa's delayed switching. Loses a b in case of an exception.
Run the first msf until the second one produces True from the output of the first.