title: How to Import Elixir Dependencies Into Current File/Module
body: <p>I'm trying to use the Hex packaged CSV.</p>
  
  <p>I'm added the dependency to mix.exs like so:</p>
  
  <pre><code>  def application do
      [applications: [:logger, :csv]]
    end
  
    defp deps do
      [
        {:csv, "~&gt; 1.4.2"}
      ]
  </code></pre>
  
  <p>Then, I run <code>mix deps.get</code> &amp; <code>mix deps.compile</code> in terminal.</p>
  
  <p>The dependency folder shows up in deps folder.</p>
  
  <p>Everything seems to be okay until I try to use the dependency.  I'm getting this error:</p>
  
  <blockquote>
    <p>"module CSV is not loaded and could not be found"</p>
  </blockquote>
  
  <p>I've tried a simply use without importing like so:</p>
  
  <pre><code>File.stream!("data.csv") |&gt; CSV.decode
  </code></pre>
  
  <p>I've tried importing like so:</p>
  
  <pre><code>import(CSV)
  File.stream!("data.csv") |&gt; CSV.decode
  </code></pre>
  
  <p>I've tried prefixing the deps directory:</p>
  
  <pre><code>import(deps.CSV)
  File.stream!("data.csv") |&gt; CSV.decode
  </code></pre>
  
  <p>And the full path to the deps subdirectory:</p>
  
  <pre><code>import(deps.csv.lib.csv.CSV)
  File.stream!("data.csv") |&gt; CSV.decode
  </code></pre>
  
  <p>No matter what it doesn't seem to find the dependency module.</p>
  
  <p>What am I missing?</p>