On Friday, March 28, 2014 10:40:55 PM UTC-4, Christopher Howard wrote: > > Hi. --Insert here the usual caveats about being new to Clojure and > Java.-- > > I wanted to try out this Contrib function describe on this > page > < > http://richhickey.github.io/clojure-contrib/types-api.html#clojure.contrib.types/defadt>. > > How > do I get that in my project? >
Hi Chris, I'm not sure, but that link you have may be referring to the old defunct monolithic contrib library. You can find a listing of all current modular contrib libraries at <http://dev.clojure.org/display/doc/Clojure+Contrib+Libraries>. The links there point to their respective homes on github. API docs for the contrib libs are available at <http://clojure.github.io/>. As described on the individual github pages, to use a contrib lib, you need to put something like the following into your project.clj's :dependencies vector: [org.clojure/foo.bar "1.2.3"] ; That's group-id/artifact-id. and then, in your source code file's `ns` macro, something like: (:require [clojure.foo.bar :as foob]) ; clojure.foo.bar is a namespace provided by the org.clojure/foo.bar lib. Note: don't let the dots in the contrib lib's group-id and artifact-id throw you. The group-id and artifact-id are not *necessarily* related to the namespace(s) provided by the lib, though they usually have pieces in common. -- John -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.