On Wed, Dec 29, 2010 at 10:37 PM, m7d <[email protected]> wrote: > Hi, > > This is a simple question, probably something easy, but I am having a > bit of trouble getting some code to compile that relies on clojureql. > The error I am getting is: > > error: java.lang.IllegalStateException: distinct already refers to: > #'clojureql.core/distinct in namespace: foo.core (core.clj:1) > > Here is how I have the namespace for my core.clj setup: > > (ns foo.core > (refer-clojure :exclude [compile drop take sort distinct conj! > disj!]) > (:use mmemail.core > clojure.contrib.sql > clojureql.core)) > > I am really new at Clojure in general, so forgive this question. Would > appreciate a pointer on what I am doing wrong.
Well, you're excluding clojure.core/distinct in your refer-clojure. So maybe two distincts are being brought in (oh, the irony) by the uses. Try commenting them out or changing them to requires one by one; if the error goes away for a particular two of them then those two are both defining a "distinct". -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
