title: importing modules in haskell
body: <p>I created a small module and I want to use it in my program. I’m able to import it in the program and use it. However, I’m not able to import it in ghci. This is causing a lot of problems as I’m not able to test things interactively which I’d like to.</p>
  
  <p>Essentially, I’m creating Geometry.hs from here (<a href="http://learnyouahaskell.com/modules#making-our-own-modules" rel="nofollow">http://learnyouahaskell.com/modules#making-our-own-modules</a>) and trying to import it in my program which works. If I do the same thing in ghci, it doesn’t. I run ghci from the same directory where Geometry.hs is present.</p>
  
  <p>This is my program.</p>
  
  <pre><code>import Geometry
  main = putStrLn $ show $ Geometry.sphereVolume 1
  </code></pre>
  
  <p>I try to execute the same lines in ghci and get this error -</p>
  
  <pre><code>&lt;no location info&gt;:
      Could not find module `Geometry'
      It is not a module in the current program, or in any known package.
  </code></pre>