Skip to content

Instantly share code, notes, and snippets.

@fmnoise
Forked from bhb/README.md
Created April 27, 2018 10:11
Show Gist options
  • Save fmnoise/b603bf386e34d3d9864680e515de8388 to your computer and use it in GitHub Desktop.
Save fmnoise/b603bf386e34d3d9864680e515de8388 to your computer and use it in GitHub Desktop.
Clojure friendly mode, inspired by https://github.com/slipset/friendly
{:paths ["."]
:deps {com.bhauman/rebel-readline {:mvn/version "0.1.2"}
expound {:mvn/version "0.6.0"}}}
(ns friendly
(:require [rebel-readline.main]
[expound.alpha :as expound]
[clojure.spec.alpha :as s]
[clojure.spec.test.alpha :as st]))
(defn -main []
(set! s/*explain-out* (expound/custom-printer {:print-specs? false :show-valid-values? true}))
(st/instrument)
(rebel-readline.main/-main))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment