package pplumbing
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=8ae0c09fec9088bc7af60582717a9e9d8bb7703e2fbf0a1b90b82e5962ed7039
sha512=ddd1d5a3d47e7c5ebfb2898f0810156dfca4e10df500ce8f39238cfe02b51fd12ea6d7796914bd02e9ad8e615da1ed7067c9f712bdbbfb884cab08d57bba3564
doc/pplumbing.pp-tty/Pp_tty/index.html
Module Pp_tty
Source
include module type of struct include Pplumbing_pp_tty.Pp_tty end
module Style = Pplumbing_pp_tty.Pp_tty.Style
Symbolic 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).
module Print_config = Pplumbing_pp_tty.Pp_tty.Print_config
Print to stdout
(not thread safe)
Print 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.
Basic helpers
Opinionated helpers
A 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
^^^^^
A 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.
A modular-explicit helper that uses the ansi style to format a stringable variable.