Package

ammonite

pprint

Permalink

package pprint

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. pprint
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. case class Config(maxWidth: () ⇒ Int = () => 100, lines: () ⇒ Int = () => 0, depth: Int = 0, indent: Int = 2, literalColor: String = null, prefixColor: String = null, renames: Map[String, String] = Config.defaultRenames) extends GenConfig[Config] with Product with Serializable

    Permalink

    Configuration options to control how prettyprinting occurs, passed recursively into each prettyprinting callsite.

    Configuration options to control how prettyprinting occurs, passed recursively into each prettyprinting callsite.

    maxWidth

    Controls how far to the right a line will go before it tries to wrap

    lines

    Controls how many lines can be printed at once. Will print all lines if set to 0

    depth

    How much the current item being printed should be indented

    renames

    A map used to rename things to more common names, e.g. renamig WrappedArray to Array or getting rid of TupleN *

  2. trait GenConfig[T <: GenConfig[T]] extends AnyRef

    Permalink

    Helpers to help inject behavior into the generated code without having any circular dependencies

  3. trait GenUtils extends AnyRef

    Permalink

    Helpers to help inject behavior into the generated code without having any circular dependencies

  4. trait LowPriPPrinter extends AnyRef

    Permalink
  5. case class PPrint[A](pprinter: PPrinter[A], cfg: Config) extends Product with Serializable

    Permalink

    A typeclass necessary to prettyprint something.

    A typeclass necessary to prettyprint something. Separate from PPrinter in order to make contravariant implicit resolution behave right.

  6. trait PPrinter[-A] extends AnyRef

    Permalink

    A typeclass you define to prettyprint values of type A

  7. trait PPrinterGen extends GenUtils

    Permalink
  8. case class Show[A](value: A, lines: Int) extends Product with Serializable

    Permalink

    Wrapper type for disabling output truncation.

    Wrapper type for disabling output truncation. PPrint(Full(value)) will always return the full output.

  9. trait TPrint[T] extends AnyRef

    Permalink

    Summoning an implicit TPrint[T] provides a pretty-printed string representation of the type T, much better than is provided by the default Type#toString.

    Summoning an implicit TPrint[T] provides a pretty-printed string representation of the type T, much better than is provided by the default Type#toString. In particular

    - More forms are properly supported and printed - Prefixed Types are printed un-qualified, according to what's currently in scope

  10. trait TPrintGen[Type[_], Cfg] extends AnyRef

    Permalink
  11. trait TPrintLowPri extends AnyRef

    Permalink

Value Members

  1. object Config extends Serializable

    Permalink
  2. object Internals

    Permalink
  3. object MacroContext

    Permalink
  4. object PPrint extends LowPriPPrint with Serializable

    Permalink
  5. object PPrinter extends LowPriPPrinter

    Permalink
  6. object TPrint extends TPrintGen[TPrint, Config] with TPrintLowPri

    Permalink
  7. object TPrintLowPri

    Permalink
  8. object Unpacker extends PPrinterGen

    Permalink
  9. def pprintln[T](t: T)(implicit arg0: PPrint[T]): Unit

    Permalink
  10. def pprintln[T](implicit arg0: PPrint[T]): (T) ⇒ Unit

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped