title: Opening a .hs file with ghci in Terminal?
body: <p>I'm using Mountain Lion. I open the terminal, then I load <code>ghci</code>, I write <code>:l</code> and then I try to load my file (which is in my desktop) by dragging it with the mouse from my desktop to the terminal, so I know that the location is correct and I get this, thank you in advance:</p>
  
  <pre><code>Prelude&gt; :l  /Users/myusername/Desktop/Test.hs 
  [1 of 1] Compiling Main             ( /Users/myusername/Desktop/Test.hs, interpreted )
  
  /Users/myusername/Desktop/Test.hs:1:7: parse error on input `\'
  Failed, modules loaded: none.
  Prelude&gt; 
  </code></pre>
  
  <p>Edit: The file Im trying to open (written in Text Edit) is:</p>
  
  <pre><code>double :: Int -&gt; Int
  double x = x + x
  </code></pre>