Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clojure.core macro specs #9

Closed
pesterhazy opened this issue Jul 29, 2017 · 3 comments
Closed

Clojure.core macro specs #9

pesterhazy opened this issue Jul 29, 2017 · 3 comments

Comments

@pesterhazy
Copy link

Is there a way to see the spec error generated when I type, say, (let (a 1) a) in the REPL printed by expound?

@bhb
Copy link
Owner

bhb commented Jul 30, 2017

Does the following work?

(require '[clojure.spec.alpha :as s])
(require '[expound.alpha :as expound])
(set! s/*explain-out* expound/printer)
(let (a 1) a)

If that doesn't work, can you provide information about your REPL environment so I can try it out?

@pesterhazy
Copy link
Author

Yes, it does work, thanks! I somehow misunderstood that part of the README.

@bhb
Copy link
Owner

bhb commented Jul 31, 2017

@pesterhazy Glad to hear it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants