Printer

trait Printer

A Printer is essentially defined by a FoldM sink that:

  • can run a Process[Task, Fragment]
  • uses a scalaz-stream Sink for side-effects and
  • accumulates state for final reporting

See TextPrinter for an example of such a Printer

Companion:
object
class Object
trait Matchable
class Any
object MarkdownPrinter.type
object TextPrinter.type

Value members

Abstract methods

def finalize(env: Env, specifications: List[SpecStructure]): Action[Unit]
def prepare(env: Env, specifications: List[SpecStructure]): Action[Unit]
def sink(env: Env, spec: SpecStructure): AsyncSink[Fragment]

Concrete methods

def printSpecification(env: Env): SpecificationStructure => Action[Unit]

convenience method to print a SpecificationStructure using the printer's Fold

convenience method to print a SpecificationStructure using the printer's Fold