Chunk

object Chunk
Companion
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

class DocChunkSyntax(self: Chunk[Doc])

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def chunked[A](f: (A, A) => A): (Chunk[A], Chunk[A]) => Chunk[A]

Given a semigroup structure on A, return a monoid structure on Chunk[A]

Given a semigroup structure on A, return a monoid structure on Chunk[A]

def empty[A]: Chunk[A]
def extract[A](chunk: Chunk[A])(implicit evidence$2: Monoid[A]): A
def fromList[A](as: List[A])(implicit evidence$1: Monoid[A]): Chunk[A]

Concatenate a list into a Chunk.

Concatenate a list into a Chunk.

def fromString(s: String): Chunk[Doc]
def paragraph(s: String): Chunk[Doc]
def tabulate(table: List[(Doc, Doc)], size: Int): Chunk[Doc]
def vcatChunks(chunks: List[Chunk[Doc]]): Chunk[Doc]

Concatenate Chunks vertically.

Concatenate Chunks vertically.

def vsepChunks(chunks: List[Chunk[Doc]]): Chunk[Doc]

Concatenate Chunks vertically separated by empty lines.

Concatenate Chunks vertically separated by empty lines.

Implicits

Implicits

implicit val chunkMonadPlus: MonadPlus[[A] =>> Chunk[A]]
implicit def chunkMonoid[A](implicit A: Monoid[A]): Monoid[Chunk[A]]