title: I need to print the old and sorted list but I am encountering an error
body: <p>I need help in coding this because I keep getting this error:
  practice.hs:44:40: error: parse error on input `='
  |
  44 |     sortedList :: [Integer] sortedList = sort numList
  |</p>
  <p>I hope someone can help. Here is my source code</p>
  <pre><code>import Data.List
  
  listBuilder :: IO()
  listBuilder = do
      numList []
  
  main = do
      listBuilder
      putStrLn &quot;Enter 5 Numbers&quot;
      num1 &lt;- getLine
      num2 &lt;- getLine
      num3 &lt;- getLine
      num4 &lt;- getLine
      num5 &lt;- getLine
      
      num1 :: numList
      num2 :: numList
      num3 :: numList
      num4 :: numList
      num5 :: numList
      sortedList :: [Integer] sortedList = sort numList
      print (&quot;Old List: &quot; ++ numList)
      print (&quot;Sorted List: &quot; ++ sortedList)```
  </code></pre>