title: Implementing a loop in Haskell
body: <p>I'm curious about implementing a loop in Haskell. How can I do something similar in Haskell (pseudo-code):</p>
  
  <pre><code>var i = 0
  for (int i1 = 0; i1 &lt; 10; i1++) {
    println(i1)
    i += 2
  }
  
  println(i)
  </code></pre>