module Warnings:sig..end
Warning definitions
Warning: this module is unstable and part of compiler-libs.
type |    | loc_start :  | 
|    | loc_end :  | 
|    | loc_ghost :  | 
}
type | | | Comment_start | 
| | | Comment_not_end | 
| | | Fragile_match of  | 
| | | Ignored_partial_application | 
| | | Labels_omitted of  | 
| | | Method_override of  | 
| | | Partial_match of  | 
| | | Missing_record_field_pattern of  | 
| | | Non_unit_statement | 
| | | Redundant_case | 
| | | Redundant_subpat | 
| | | Instance_variable_override of  | 
| | | Illegal_backslash | 
| | | Implicit_public_methods of  | 
| | | Unerasable_optional_argument | 
| | | Undeclared_virtual_method of  | 
| | | Not_principal of  | 
| | | Non_principal_labels of  | 
| | | Ignored_extra_argument | 
| | | Nonreturning_statement | 
| | | Preprocessor of  | 
| | | Useless_record_with | 
| | | Bad_module_name of  | 
| | | All_clauses_guarded | 
| | | Unused_var of  | 
| | | Unused_var_strict of  | 
| | | Wildcard_arg_to_constant_constr | 
| | | Eol_in_string | 
| | | Duplicate_definitions of  | 
| | | Module_linked_twice of  | 
| | | Unused_value_declaration of  | 
| | | Unused_open of  | 
| | | Unused_type_declaration of  | 
| | | Unused_for_index of  | 
| | | Unused_ancestor of  | 
| | | Unused_constructor of  | 
| | | Unused_extension of  | 
| | | Unused_rec_flag | 
| | | Name_out_of_scope of  | 
| | | Ambiguous_name of  | 
| | | Disambiguated_name of  | 
| | | Nonoptional_label of  | 
| | | Open_shadow_identifier of  | 
| | | Open_shadow_label_constructor of  | 
| | | Bad_env_variable of  | 
| | | Attribute_payload of  | 
| | | Eliminated_optional_arguments of  | 
| | | No_cmi_file of  | 
| | | Unexpected_docstring of  | 
| | | Wrong_tailcall_expectation of  | 
| | | Fragile_literal_pattern | 
| | | Misplaced_attribute of  | 
| | | Duplicated_attribute of  | 
| | | Inlining_impossible of  | 
| | | Unreachable_case | 
| | | Ambiguous_var_in_pattern_guard of  | 
| | | No_cmx_file of  | 
| | | Flambda_assignment_to_non_mutable_value | 
| | | Unused_module of  | 
| | | Unboxable_type_in_prim_decl of  | 
| | | Constraint_on_gadt | 
| | | Erroneous_printed_signature of  | 
| | | Unsafe_array_syntax_without_parsing | 
| | | Redefining_unit of  | 
| | | Unused_open_bang of  | 
| | | Unused_functor_parameter of  | 
| | | Match_on_mutable_state_prevent_uncurry | 
type |    | kind :  | 
|    | message :  | 
|    | def :  | 
|    | use :  | 
}
val parse_options : bool -> string -> unit
val parse_alert_option : string -> unitDisable/enable alerts based on the parameter to the -alert
      command-line option.  Raises Arg.Bad if the string is not a
      valid specification.
val without_warnings : (unit -> 'a) -> 'aRun the thunk with all warnings and alerts disabled.
val is_active : t -> bool
val is_error : t -> bool
val defaults_w : string
val defaults_warn_error : string
type |    | id :  | 
|    | message :  | 
|    | is_error :  | 
|    | sub_locs :  | 
}
val report : t -> [ `Active of reporting_information | `Inactive ]
val report_alert : alert -> [ `Active of reporting_information | `Inactive ]
exception Errors
val check_fatal : unit -> unit
val reset_fatal : unit -> unit
val help_warnings : unit -> unit
type 
val backup : unit -> state
val restore : state -> unit
val mk_lazy : (unit -> 'a) -> 'a Lazy.tLike Lazy.of_fun, but the function is applied with
        the warning/alert settings at the time mk_lazy is called.