Hi,

I tried to use org babel to document my learning of clojure. Trying the 
following codes in org babel.
#+begin_src clojure  :results pp
  (require '[schema.core :as s])
  (s/defrecord MyDomainModel
    [date :- Long
     ])

  (s/validate MyDomainModel (map-> MyDomainModel{:date 123}))
#+end_src

The above source codes were expanded to:

(clojure.pprint/pprint (do (require '[schema.core :as s])
                                       (s/defrecord MyDomainModel
                                           [date :- Long])
                                        (s/validate MyDomainModel 
(map->MyDomainModel{:date 123}))))

Tried the above codes in repl and it gave the following error:
 Unable to resolve symbol:
   MyDomainModel in this context

I have [prismatic/schema "1.0.4"] in dependencies list.

As a newbie, I am interested to know how to debug such issues. The expanded 
codes seem fine. Anyone could help to point me what is wrong with that 
expanded codes?

Thanks.

-- 
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.

Reply via email to