I have two functions:
emptyDirectory, copyStubFileTo :: FilePath -> IO ()
I want to combine them the way as below:
forM_ ["1", "2"] $\n -> do
emptyDirectory n
copyStubFileTo n
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.
1 Answer