title: Executing multiple commands in the same function (Haskell)
body: <p>I am trying to execute few statements in my function in Haskell,
  I looked online and got the idea that may be if I use "do" I can be able to do that.I used that but it still is not working for me, If some one can please have a look and guide me what I am doing wrong, I have just started with haskell, so its a little struggle with Haskell syntax.</p>
  
  <p>My function: </p>
  
  <pre><code>type Rod = String
  Move = (Integer, Rod, Rod)
  hanoi :: Integer -&gt; Rod -&gt; Rod -&gt; Rod -&gt; [Move]
  hanoi n source helper destination= if n==1 then [(n source destination)] else do
                                  (hanoi (n-1) source helper destination) 
                                  ([n source destination]) 
                                  (hanoi (n-1) helper destination source)
  </code></pre>
  
  <p>I am trying to do the towers of Hanoi problem.and I want to execute the three statements that are after "do". Any help would be highly appreciated . </p>
  
  <p>Thanks in advance!!!</p>