Pplumbing_pp_tty.Pp_ttyBuild pretty printed documents for the user.
module Ansi_color : sig ... endBuild pretty printed documents with ansi colors.
module Style : sig ... endSymbolic styles that can be used inside messages. These styles are later converted to actual concrete styles depending on the output device. For instance, when printed to the terminal they are converted to ansi terminal styles (Ansi_color.Style.t list values).
type t = Style.t Pp.tStyled document that can be printed to the console or in the log file.
module Print_config : sig ... endval print : ?config:Print_config.t -> t -> unitPrint to stdout (not thread safe)
val prerr : ?config:Print_config.t -> t -> unitPrint to stderr (not thread safe)
An alias for Pp.tag dedicated to the expected Style.t type. Using this function allows to write the Style.t constructor without qualifying them, which may be more ergonomic.
val loc : Loc.t -> tA pretty printer for code locations. The uses a common syntax that is usually configured by editors to allow jumping to locations. If the file listed by the location is available, this will render a small quotation for the location, such as in:
File "my-file", line 42, character 6-11:
42 | Hello World
^^^^^module type To_string = sig ... endA modular-explicit helper that uses brackets and the Id symbolic style to format a stringable identifier.
A modular-explicit helper that uses brackets and the Kwd symbolic style to format a stringable keyword.
A modular-explicit helper that uses double_quotes and the Bold ansi style to format a stringable path.
val ansi :
(module To_string with type t = 'a) ->
'a ->
Ansi_color.Style.t list ->
tA modular-explicit helper that uses the ansi style to format a stringable variable.