org.hammerlab.io
Wrapper for implementing Shows using a Printer.
Example syntax (from test):
implicit val showA = Print[A] { new Print(_) { val A(n, s) = t echo(s"$n, $s") } }
echo and other CanPrint utilities are availabe to write to an implicit Printer wrapping a ByteArrayOutputStream from which a string-representation is parsed.
Named to avoid overloading Predef.print
Wrapper for implementing Shows using a Printer.
Example syntax (from test):
implicit val showA = Print[A] { new Print(_) { val A(n, s) = t echo(s"$n, $s") } }
echo and other CanPrint utilities are availabe to write to an implicit Printer wrapping a ByteArrayOutputStream from which a string-representation is parsed.