package coq

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Console printing options

type pp_global_params = {
  1. margin : int;
  2. max_indent : int;
  3. max_depth : int;
  4. ellipsis : string;
}
val dflt_gp : pp_global_params
val deep_gp : pp_global_params
val set_gp : Stdlib.Format.formatter -> pp_global_params -> unit
val set_dflt_gp : Stdlib.Format.formatter -> unit
val get_gp : Stdlib.Format.formatter -> pp_global_params
Output functions of pretty-printing.
val with_output_to : Stdlib.out_channel -> Stdlib.Format.formatter
val std_ft : Stdlib.Format.formatter Stdlib.ref
val err_ft : Stdlib.Format.formatter Stdlib.ref
val deep_ft : Stdlib.Format.formatter Stdlib.ref
For parametrization through vernacular.
val set_depth_boxes : int option -> unit
val get_depth_boxes : unit -> int option
val set_margin : int option -> unit
val get_margin : unit -> int option
val std_logger : ?pre_hdr:Pp.t -> Feedback.level -> Pp.t -> unit

Console display of feedback, we may add some location information

val emacs_logger : ?pre_hdr:Pp.t -> Feedback.level -> Pp.t -> unit
val default_styles : unit -> unit

Color output

val parse_color_config : string -> unit
val dump_tags : unit -> (string * Terminal.style) list
val set_emacs_print_strings : unit -> unit
val init_terminal_output : color:bool -> unit

Initialization of interpretation of tags

Error printing

type execution_phase =
  1. | ParsingCommandLine
  2. | Initialization
  3. | LoadingPrelude
  4. | LoadingRcFile
  5. | InteractiveLoop
  6. | CompilationPhase
val in_phase : phase:execution_phase -> ('a -> 'b) -> 'a -> 'b
val pr_loc : Loc.t -> Pp.t
val pr_phase : ?loc:Loc.t -> unit -> Pp.t option
val print_err_exn : exn -> unit
val with_output_to_file : string -> ('a -> 'b) -> 'a -> 'b

with_output_to_file file f x executes f x with logging redirected to a file file

val pr_cmd_header : Vernacexpr.vernac_control -> Pp.t
OCaml

Innovation. Community. Security.