title: Haskell problem "parse error (possibly incorrect indentation or mismatched brackets)"
body: <p>I'm new in Haskell and kind of struggling with an issue I'm not even sure I understand so I could use some help to fix it...</p>
  <p>I'm trying to create a simple function that, given three digits &quot;a&quot; &quot;b&quot; and &quot;c&quot;, would display all combinations where &quot;a&quot; is smaller than &quot;b&quot; and &quot;b&quot; i smaller than &quot;c&quot; while incrementing them. For instance &quot;4&quot;, &quot;5&quot; and &quot;6&quot; would give something like &quot;456, 457, 458, 459, 467, 468, 469, 478, 479, 489, 567, 568, 569, 578, 579, 589, 678, 679, 689, 789&quot;</p>
  <p>So far my code looks like this :</p>
  <pre><code>  axx :: Int -&gt; Int -&gt; Int -&gt; Int
    axx (x) (y) (z) = if y == 8 &amp;&amp; z == 9
                          then x + 1
                          else x
    
    ayy :: Int -&gt; Int -&gt; Int -&gt; Int
    ayy (x) (y) (z) = let y = if z == 9 &amp;&amp; y &lt; 8
                                  then y + 1
                                  else if z == 9 &amp;&amp; y == 8
                                  then x + 1
                                  else y
    
    azz :: Int -&gt; Int -&gt; Int -&gt; Int
    azz (x) (y) (z) = let z = if z == 9
                                  then y + 1
                                  else z + 1
    
    my_print_comb :: Int -&gt; Int -&gt; Int -&gt; IO ()
    my_print_comb (x) (y) (z) = do print (x)
                                   print (y)
                                   print (z)
                                   if (x /= 7 &amp;&amp; y /= 8 &amp;&amp; z /= 9)
                                       then do
                                           putStr &quot;, &quot;
                                           let x = axx (x y z)
                                           let y = ayy (x y z)
                                           let z = azz (x y z)
                                           my_print_comb(x y z)
                                       else putStr &quot;\n&quot;
  </code></pre>
  <p>But when I try to compile it, I get the &quot;parse error (possibly incorrect indentation or mismatched brackets)&quot; error message regarding the line where my &quot;azz&quot; function starts. I tried looking for similar case on the web but without any luck so far.</p>
  <p>Could anyone help me?</p>