Skip to content

Instantly share code, notes, and snippets.

@bhb
Forked from borkdude/init.cljs
Last active November 7, 2018 03:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhb/198d3c6385a0e7a9867211b84d465a42 to your computer and use it in GitHub Desktop.
Save bhb/198d3c6385a0e7a9867211b84d465a42 to your computer and use it in GitHub Desktop.
Speculative + Expound in Klipse
(require '[cljs.spec.alpha :as s])
(require '[cljs.spec.test.alpha :as stest])
(require '[expound.alpha :as expound])
(require '[speculative.core])
(set! s/*explain-out* (expound/custom-printer {:show-valid-values? true}))
(stest/instrument `map)
(try
(map 'lol 'lol)
(catch :default e
(println (.-message e))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment