PrettyPrinter

scalus.sir.PrettyPrinter
object PrettyPrinter

Pretty printers.

  • Use pretty to pretty print to a org.typelevel.paiges.Doc.
  • Use prettyXTerm to pretty print to a org.typelevel.paiges.Doc with syntax highlighting for XTerm.

For example:

PrettyPrinter.prettyXTerm(sir).render(80)
// renders a single line if possible
PrettyPrinter.pretty(sir).flatten.render(120)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

enum Style

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def inParens(d: Doc): Doc
def pretty(df: DefaultFun): Doc
def pretty(d: Data): Doc
def pretty(c: Constant): Doc
def pretty(du: DefaultUni): Doc
def pretty(sir: SIR, style: Style): Doc
def pretty(p: Program): Doc
def pretty(term: Term, style: Style): Doc
def pretty(program: Program, style: Style): Doc
def prettyValue(c: Constant, dataParens: Boolean): Doc