title: Haskell input - how to read x number of inputs from stdin
body: <p>The user will enter a number of cases, the length of the case, and then the case. The number of cases varies each time. Example of user input:</p>
  
  <pre><code>2
  4
  "four"
  3
  "the"
  </code></pre>
  
  <p>I need to do something to each of the cases, but how do I get the execute the do loop to match the number of cases? </p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>main = do
      numOfCases &lt;- getInteger
      caseLength &lt;- getInteger
      case &lt;- getLine
      putStrLn $ doSomething case
      --how do I call the loop exactly once more, but this time without the numOfCases?
  </code></pre>
  
  <p>Thanks.</p>