Pretty printers in Swift
🕓 4 weeks ago
.package(url: "https://github.com/chriseidhof/pretty.git", from: "0.0.4")
Simple pretty printers in Swift, based on Wadler's pretty printers. If you need something more tested, use DoctorPretty
The key idea in these pretty printers is to build a datatype that supports choice: a document can render either one way or another.