title: How to load files into ghci
body: <p>I'm trying to build a function in Haskell. I created a plain text file with the following function:</p>
  
  <pre><code>doubleme x = x + x
  </code></pre>
  
  <p>I saved it under baby.txt.</p>
  
  <p>I navigated to the file from the command line, then I did the following from the command line:</p>
  
  <pre><code>ghci
  Prelude&gt; :l baby
  </code></pre>
  
  <p>it returned:</p>
  
  <pre><code>target ‘baby’ is not a module name or a source file
  </code></pre>
  
  <p>I was wondering what I'm doing wrong and how to make the function compile?</p>