Module Warnings
Warning definitions
Warning: this module is unstable and part of compiler-libs.
type loc={loc_start : Stdlib.Lexing.position;loc_end : Stdlib.Lexing.position;loc_ghost : bool;}type t=type alert={kind : string;message : string;def : loc;use : loc;}
val parse_options : bool -> string -> unitval parse_alert_option : string -> unitDisable/enable alerts based on the parameter to the -alert command-line option. Raises
Arg.Badif the string is not a valid specification.
val is_active : t -> boolval is_error : t -> boolval defaults_w : stringval defaults_warn_error : string
type reporting_information={id : string;message : string;is_error : bool;sub_locs : (loc * string) list;}
val report : t -> [ `Active of reporting_information | `Inactive ]val report_alert : alert -> [ `Active of reporting_information | `Inactive ]
val backup : unit -> stateval restore : state -> unitval mk_lazy : (unit -> 'a) -> 'a Stdlib.Lazy.tLike
Lazy.of_fun, but the function is applied with the warning/alert settings at the timemk_lazyis called.