title: How to load imports automatically in cabal repl?
body: <p>I am under the impression that until recently <code>cabal repl</code> automatically imported all the imports from the currently loaded file. That is if I had a file <code>src/Main.hs</code>:</p>
  
  <pre><code>module Main where
  
  import qualified Data.Vector as V
  
  main = putStrLn "foo"
  </code></pre>
  
  <p>And I would load it in <code>cabal repl</code> with <code>:l src/Main.hs</code>, <code>V</code> would be available without any further work.</p>
  
  <p>I believe this behavior changed during the change to ghc/ghci <code>7.10</code>, but I am not sure. Is there any option that would let me change that back to the way it was before?</p>
  
  <p><strong>edit:</strong> As it happens I have actually compiled the modules, which was part of the problem. See <em>Ørjan Johansens</em> comment below.</p>