I'm trying to use m-plus inside a macro like this: (defmacro alt [& subrules] (with-monad parser-m `(fn [state#] ((m-plus ~...@subrules) state#))))
Unfortunately, I get the error: No such var: my-namespace.fnparse/m-plus I've been trying various ways, and I think that replacing m-plus with (:m-plus parser-m) makes it work, but it's ugly and takes advantage of a library's internals. How can I use m-plus without resorting to the hackneyed solution? --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---