title: Clojure: Lein run unable to resolve symbol
body: <p>I just started on my first clojure project using lein, the code here:</p>
  
  <pre><code>(ns fileops.core
    (:use
      [clojure.core :only (slurp)]
      [clojure-csv.core :only (parse-csv)]
      [fileops.core]))
  
  (defn -main
    "I don't do a whole lot ... yet."
    [&amp; args]
    (read-file "sample.csv"))
  
  (defn read-file
    "open and read the csv file"
    [fname]
    (with-open [file (clojure.java.io/reader fname)]
      (parse-csv (slurp fname))))
  </code></pre>
  
  <p>I tried to run this using "lein run" but I keep getting this error:</p>
  
  <pre><code>Caused by: java.lang.RuntimeException: Unable to resolve symbol: read-file in this context
      at clojure.lang.Util.runtimeException(Util.java:219)
      at clojure.lang.Compiler.resolveIn(Compiler.java:6874)
      at clojure.lang.Compiler.resolve(Compiler.java:6818)
      at clojure.lang.Compiler.analyzeSymbol(Compiler.java:6779)
      at clojure.lang.Compiler.analyze(Compiler.java:6343)
      ... 52 more
  </code></pre>
  
  <p>What am I doing wrong?</p>