package containers

  1. Overview
  2. Docs
A modular, clean and powerful extension of the OCaml standard library

Install

Dune Dependency

Authors

Maintainers

Sources

v3.12.tar.gz
md5=d74226924b65697a8558eb34a6074417
sha512=d5094e362f9ad7fe91aa060ef5c9805812cf888b326f0f0070f929205a83169a64c78dfce58a2ec0da77555b21c69a1f287fb38da9867cd6b16507f6c20fa666

doc/containers.pp/Containers_pp/Ext/index.html

Module Containers_pp.ExtSource

Extension node.

Custom nodes can be used to add user-defined behavior to the rendered output. For example, documents might be annotated with ANSI-terminal colors, or with HTML tags.

Sourcetype 'a t = {
  1. pre : Out.t -> 'a -> unit;
    (*

    Printed before the wrapped value.

    *)
  2. post : Out.t -> 'a -> unit;
    (*

    Printed after the wrapped value.

    *)
}

An extension is a custom document node. It takes a value of type 'a, and a document d, and can output what it wants based on the custom value before and after d is printed.

The extension is considered to have width 0.

OCaml

Innovation. Community. Security.