title: Haskell Parse Error - Naked Expression at Top Level
body: <p>I have a haskell file test.hs.
  In this file I have written a function</p>
  
  <pre><code>doubleMe x: x + x
  </code></pre>
  
  <p>this is the only function in this file test.hs.
  In the ghci command prompt I have typed ":l test.hs" without quotes.
  The following error comes up:</p>
  
  <pre><code>compiling main  &lt;test.hs interpreted&gt;
  test.hs:1:1 Parse error: naked expression at top level
  Failed: modules loaded:none
  </code></pre>
  
  <p>What will be the cause of this error.</p>
  
  <p>I have gone through
  <a href="https://stackoverflow.com/questions/6885148/haskell-error-naked-expression-at-top-level">Haskell Error - Naked Expression at Top Level</a></p>
  
  <p>and</p>
  
  <p><a href="https://stackoverflow.com/questions/6208622/what-is-parse-error-naked-expression-at-top-level">what is parse error: naked expression at top level?</a></p>
  
  <p>It did not help.</p>