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
Source:
Document.scala
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object DocBreak.type
class DocCons
class DocGroup
class DocNest
object DocNil.type
class DocText

Value members

Concrete methods

def :/:(hd: String): 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.

Source:
Document.scala

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