Skip to content

Instantly share code, notes, and snippets.

@bhb
Created June 25, 2018 14:39
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/66804e5fe2a3de728744a620cf0ccf27 to your computer and use it in GitHub Desktop.
Save bhb/66804e5fe2a3de728744a620cf0ccf27 to your computer and use it in GitHub Desktop.
Changes in printing alternatives
(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