/hasht

#️⃣ Fork of hashp with #t for tap>

Primary LanguageClojureMIT LicenseMIT

rads.hasht

This is a fork of hashp which includes the #t reader tag to call tap> in addition to printing.

The original library was written by @weavejester and the implementation was inspired by a PR for #t from @PEZ.

Install

Installation is the same as hashp except using io.github.rads/hasht as the dependency.

Leiningen

Add the following to ~/.lein/profiles.clj:

{:user
 {:dependencies [[io.github.rads/hasht "0.2.1"]]
  :injections [(require 'hashp.core)]}}

Boot

Add the following to ~/.boot/profile.boot:

(set-env! :dependencies #(conj % '[io.github.rads/hasht "0.2.1"]))

(require 'hashp.core)
(boot.core/load-data-readers!)

Shadow-CLJS

Add the following to shadow-cljs.edn:

{:dependencies [io.github.rads/hasht "0.2.1"]
 :builds {:app {:devtools {:preloads [hashp.core]}}}}

Or alternatively via ~/.shadow-cljs/config.edn and --config-merge:

~/.shadow-cljs/config.edn:

{:dependencies [[io.github.rads/hasht "0.2.1"]]}

Run:

shadow-cljs watch app --config-merge '{:devtools {:preloads [hashp.core]}}'