for package:contiguous

for is traverse with its arguments flipped. For a version that ignores the results see for_.
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.
for_ is traverse_ with its arguments flipped. For a version that doesn't ignore the results see for.
>>> for_ (C.fromList [1..4] :: PrimArray Int) print
1
2
3
4