forM package:contiguous

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