title: Error loading function from file in GHCi
body: <p>I'm completely new to Haskell. To grasp the basics I've started working through 'Learn you a Haskell for Great Good'. I'm stuck on the simple matter of loading a function from a file.</p>
  
  <p>The file is called <code>baby.hs</code> and contains the function</p>
  
  <pre><code>doubleMe x = x + x
  </code></pre>
  
  <p>and nothing else. I've saved it in <code>/Users/me</code>.</p>
  
  <p>Typing <code>:load baby</code> into GHCi, I get the following error:</p>
  
  <blockquote>
    <p>target `baby' is not a module name or a source file.</p>
  </blockquote>
  
  <p>I'm working on a Mac and I created my <code>baby.hs</code> file using TextEdit set to produce a plain text/UTF-8 file. I think my home directory is <code>/Users/me</code> although I'm not sure how to check this from GHCi, it is from when I check from bash before running GHCi.</p>
  
  <p>Any idea what I'm doing wrong?</p>