title: Join two IO actions using the same input in Haskell
body: <p>I have two functions:</p>
  
  <pre><code>emptyDirectory, copyStubFileTo :: FilePath -&gt; IO ()
  </code></pre>
  
  <p>I want to combine them the way as below:</p>
  
  <pre><code>forM_ ["1", "2"] $\n -&gt; do
    emptyDirectory n
    copyStubFileTo n
  </code></pre>
  
  <p>Is there any other standard way built into Haskell to simplify this combination?
  I mean joining two IO actions and giving them the same input.</p>