package GT
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=58aa091948383ffa6c452b89880becae980ae32cc3a4969fe1c636e46810db69
sha512=ee878ba4c2ee16f5b77f4b4e98664d53e91b7a710b9162905b9a43118a03e9c0d7b378a13e104e16a84556bca1176026d93f11934d69eecb459b771e9340ffd7
doc/GT.View/View/index.html
Module View
Viewing values of various types.
Combinatorial interface
type er = Buffer.t -> unitType of the printer (to be referenced as View.er).
type viewer = erSynonym for unqualified reference.
val toString : viewer -> stringString conversion.
Primitive viewers
val empty : viewerempty viewer
Viewers for built-in types
val unit : unit -> viewerunit viewer.
val string : string -> viewerstring viewer.
val int : int -> viewerint viewer.
val float : float -> viewerfloat viewer.
val bool : bool -> viewerbool viewer.
val char : char -> viewerchar viewer.
Some predefined string viewers
val semicolon : viewerSemicolon ";".
val comma : viewerComma ",".
val space : viewerSpace " ".
val break : viewerBreak "\n".
Sequence combinators
Bracketing combinators
Functorial interface
module type Viewable = sig ... endSignature to provide viewing function.
module type Concat = sig ... endSignature to supply concatenation function.
Viewing lists of Viewable types with explicit concatenation function.
Viewing arrays of Viewable types with explicit concatenation function.
module SetC
(C : Concat)
(S : Set.S)
(V : Viewable with type t = S.elt) :
Viewable with type t = S.tViewing sets of Viewable types with explicit concatenation function. Set items are ordered in according to their <b>string representations</b>.
module MapC
(C : Concat)
(M : Map.S)
(K : Viewable with type t = M.key)
(V : Viewable) :
Viewable with type t = V.t M.tViewing maps of Viewable types with explicit concatenation function. Set items are ordered in according to their <b>string representations</b>.
module HashtblC
(C : Concat)
(M : Hashtbl.S)
(K : Viewable with type t = M.key)
(V : Viewable) :
Viewable with type t = V.t M.tViewing hash tables of Viewable types with explicit concatenation function. Set items are ordered in according to their <b>string representations</b>.
Viewing lists of Viewable types with concatenation with comma.
Viewing arrays of Viewable types with concatenation with comma.
Viewing sets of Viewable types with concatenation with comma. Set items are ordered in according to their <b>string representations</b>.
module Map
(M : Map.S)
(K : Viewable with type t = M.key)
(V : Viewable) :
Viewable with type t = V.t M.tViewing maps of Viewable types with concatenation with comma. Set items are ordered in according to their <b>string representations</b>.
module Hashtbl
(M : Hashtbl.S)
(K : Viewable with type t = M.key)
(V : Viewable) :
Viewable with type t = V.t M.tViewing has htables of Viewable types with concatenation with comma. Set items are ordered in according to their <b>string representations</b>.
Viewing named pairs. The first parameter supplies components names.
Wrappers to make builtin types viewable
Viewing helpers
Concatenation function: concatWithDelimiter x y delim returns x ^ delim ^ y if x is not empty and y otherwise.