title: Square of list in Haskell
body: <p>I am making function in Haskell to get the square of the list. Here is my code</p>
  
  <pre><code>sqrall :: [Int] -&gt; [Int]
  sqrall [] = []
  sqrall [x] =  map (^2) x
  </code></pre>
  
  <p>But that code is not working.i don't know where i am missing.. Please help me..</p>