Created
June 25, 2018 14:39
-
-
Save bhb/66804e5fe2a3de728744a620cf0ccf27 to your computer and use it in GitHub Desktop.
Changes in printing alternatives
This file contains 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 '[clojure.spec.alpha :as s]) | |
(require '[expound.alpha :as expound]) | |
(set! s/*explain-out* (expound/custom-printer {:print-specs? false :theme :figwheel-theme})) | |
;;;;; Old output (0.7.0) ;;;;; | |
-- Spec failed -------------------- | |
(... (arg1 ...) ...) | |
^^^^ | |
should satisfy | |
vector? | |
------------------------- | |
Detected 1 error | |
;;;;; New output (0.7.1) ;;;;; | |
(defn foo (arg1 arg2) arg3) | |
CompilerException clojure.lang.ExceptionInfo: Call to clojure.core/defn did not conform to spec: | |
-- Spec failed -------------------- | |
(... (arg1 arg2) ...) | |
^^^^^^^^^^^ | |
should satisfy | |
vector? | |
or value | |
(... (arg1 ...) ...) | |
^^^^ | |
should satisfy | |
vector? | |
------------------------- | |
Detected 1 error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment