title: Reverse a list in haskell
body: <p>I am trying to reverse a list.</p>
  
  <p>Following is my code:</p>
  
  <pre><code>reverseList :: [Int] -&gt; [Int]
  reverseList [] = []
  reverseList (x:xs) =  x:reverseList xs
  </code></pre>
  
  <p>What ends up happening is I end up getting the list back in same order. I even have a solution for how to reverse the list but I am trying to understand what I did wrong here ? I am very new to haskell so think I should focus on understanding more then I can solve more problems with ease. I know there are many solutions out there for this problem but I need more help in the understanding esp what I did wrong here in this code. </p>