package mopsa

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

Debug - Conditional debugging with channel filtering.

val channels : Str.regexp list Stdlib.ref
val print_warnings : bool Stdlib.ref
val print_color : bool Stdlib.ref
val print_all : bool Stdlib.ref
val white : int
val red : int
val green : int
val yellow : int
val blue : int
val magenta : int
val fushia : int
val orange : int
val teal : int
val gray : int
val pink : int
val add_channel : string -> unit
val parse : string -> unit
val set_channels : string -> unit
val can_print : string -> bool
val random_color : 'a -> int

Gives a random map of channel colors

val color : int -> (Stdlib.Format.formatter -> 'a -> unit) -> Stdlib.Format.formatter -> 'a -> unit
val color_str : int -> Stdlib.Format.formatter -> string -> unit
val bold : (Stdlib.Format.formatter -> 'a -> unit) -> Stdlib.Format.formatter -> 'a -> unit
val pp_channel : Stdlib.Format.formatter -> string -> unit
val pp_channel_with_time : 'a -> string -> unit
val debug : ?channel:string -> ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a
val info : ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a
val plurial_list : Stdlib.Format.formatter -> 'a list -> unit
val plurial_int : Stdlib.Format.formatter -> int -> unit
val panic : ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a
val panic_at : Location.range -> ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a
val warn : ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a
val warn_at : Location.range -> ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a
val terminal_has_colors : unit -> bool
OCaml

Innovation. Community. Security.