Chunk

optparse_applicative.helpdoc.Chunk
See theChunk companion class
object Chunk

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Chunk.type

Members list

Type members

Classlikes

implicit class DocChunkSyntax(self: Chunk[Doc])

Attributes

Supertypes
class Object
trait Matchable
class Any

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

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]

Attributes

def empty[A]: Chunk[A]
def extract[A : Monoid](chunk: Chunk[A]): A
def fromList[A : Monoid](as: List[A]): Chunk[A]

Concatenate a list into a Chunk.

Concatenate a list into a Chunk.

Attributes

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.

Attributes

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

Concatenate Chunks vertically separated by empty lines.

Concatenate Chunks vertically separated by empty lines.

Attributes

Implicits

Implicits

final implicit def DocChunkSyntax(self: Chunk[Doc]): DocChunkSyntax
implicit val chunkMonadPlus: MonadPlus[Chunk]
implicit def chunkMonoid[A](implicit A: Monoid[A]): Monoid[Chunk[A]]