forM_ package:foundation

forM_ is mapM_ with its arguments flipped. For a version that doesn't ignore the results see forM.