Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/camsaul/pretty

A standard protocol for making custom types in Clojure pretty print in the REPL and elsewhere.
https://github.com/camsaul/pretty

clojure pretty-print pretty-printer pretty-printing protocol repl

Last synced: 23 days ago
JSON representation

A standard protocol for making custom types in Clojure pretty print in the REPL and elsewhere.

Awesome Lists containing this project

README

        

[![Downloads](https://versions.deps.co/camsaul/pretty/downloads.svg)](https://versions.deps.co/camsaul/pretty)
[![Dependencies Status](https://versions.deps.co/camsaul/pretty/status.svg)](https://versions.deps.co/camsaul/pretty)
[![Circle CI](https://circleci.com/gh/camsaul/pretty.svg?style=svg)](https://circleci.com/gh/camsaul/pretty)
[![License](https://img.shields.io/badge/license-Eclipse%20Public%20License-blue.svg)](https://raw.githubusercontent.com/camsaul/pretty/master/LICENSE)
[![cljdoc badge](https://cljdoc.org/badge/pretty/pretty)](https://cljdoc.org/d/pretty/pretty/CURRENT)

[![Clojars Project](https://clojars.org/pretty/latest-version.svg)](http://clojars.org/pretty)

A standard protocol for making custom types in Clojure pretty print in the REPL and elsewhere.

```clj
(require '[pretty.core :as pretty])

(defrecord MyInt [i]
pretty/PrettyPrintable
(pretty [_] (list 'my-int i)))

(MyInt. 100)
;; -> (my-int 100)
```