Use foldM_ instead of foldM when a return value is discarded.