Can't use nomads
Hi, in chapter 10.9's exercise, we need to use nomads library: `(use 'clojure.algo.monad)
When trying to run it in lein , It has an error that it can't the class:
user=> (use 'clojure.algo.monad)
Execution error (FileNotFoundException) at user/eval2792 (REPL:1).
Could not locate clojure/algo/monad__init.class, clojure/algo/monad.clj or
clojure/algo/monad.cljc on classpath.
⇒ lein -v
Leiningen 2.9.1 on Java 1.8.0_172 Java HotSpot(TM) 64-Bit Server VM
e
Anyone has an idea? (couldn't find anything in Google)
Thanks
Sorry - I've been on a long vacation.
Have you installed all the dependencies listed in https://github.com/marick/fp-oo/blob/master/project.clj ?
I installed the dependencies, and I get the same problem. Investigating...
(Sorry, but I haven't used Clojure for years, so I've forgotten how to work with it.)
So this is odd. Starting from (what I think is) a clean environment, I downloaded everything in the project.clj file. Two of the three things work:
user=> (use 'midje.sweet)
Run `(doc midje)` for Midje usage.
nil
user=> (use 'clojure.algo.monad)
FileNotFoundException Could not locate clojure/algo/monad__init.class or clojure/algo/monad.clj on classpath: clojure.lang.RT.load (RT.java:443)
user=>
nil
user=>
user=> (use 'patterned.sweet)
nil
Although I like for people to do the exercises, maybe this is a case where it's best to just read the words.