-
-
Save bhb/198d3c6385a0e7a9867211b84d465a42 to your computer and use it in GitHub Desktop.
Speculative + Expound in Klipse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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