Document

sealed abstract
class Document extends Product with Serializable

A basic pretty-printing library, based on Lindig's strict version of Wadler's adaptation of Hughes' pretty-printer.

derived from https://github.com/scala/scala/blob/v2.11.8/src/library/scala/text/Document.scala

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object DocBreak
class DocCons
class DocGroup
class DocNest
object DocNil
class DocText

Value members

Concrete methods

def :/:(hd: String): Document
def ::(hd: Document): Document
def ::(hd: String): Document
def format(width: Int, writer: Writer): Unit

Format this document on writer and try to set line breaks so that the result fits in width columns.

Format this document on writer and try to set line breaks so that the result fits in width columns.

Inherited methods

def canEqual(that: Any): Boolean
Inherited from
Equals
def productArity: Int
Inherited from
Product
def productElement(n: Int): Any
Inherited from
Product
def productElementName(n: Int): String
Inherited from
Product
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def productPrefix: String
Inherited from
Product