title: Simple haskell program doesnt compile with GHCi
body: <p>Consider what follows to be my code</p>
  
  <pre><code> import Data.Char
   import Data.List
  
  -- square
  square :: Int -&gt; Int
  square n = n * n
  </code></pre>
  
  <p>Although this square functions looks neat and clear, when I run it</p>
  
  <pre><code>ghci ./square.hs
  </code></pre>
  
  <p>It returns</p>
  
  <pre><code>[1 of 1] Compiling Main             ( ./LabSheet1-solns.hs, interpreted )
  
  ./LabSheet1-solns.hs:5:1:
      parse error on input `square'
  Failed, modules loaded: none.
  </code></pre>
  
  <p>There should probably be something wrong with my interpreter.</p>
  
  <p>I am running on OS X 10.8.1</p>
  
  <pre><code>$ ghci --version
  The Glorious Glasgow Haskell Compilation System, version 7.4.2
  </code></pre>
  
  <p>Any clue?</p>