type old_location_error = {loc : Location.t;msg : string;sub : old_location_error list;if_highlight : string;}type location_msg = (Stdlib.Format.formatter -> unit) Location.loctype location_report_kind = Location.report_kind =| Report_error| Report_warning of string| Report_warning_as_error of string| Report_alert of string| Report_alert_as_error of stringtype location_report = Location.report = {kind : location_report_kind;main : location_msg;sub : location_msg list;}type location_error = Location.errortype error_type = [|`Report of location_report|`Old_error of old_location_error]
val error_type_of_location_error : location_error -> error_typeval location_error_of_exn : exn -> location_errorval extension_of_error : mk_pstr:('a list -> 'b) -> mk_extension:((string Location.loc * 'b) -> 'a) -> mk_string_constant:(string -> 'a) -> location_error -> string Location.loc * 'bval error_of_exn : exn -> location_error optionval register_error_of_exn : (exn -> Location.error option) -> unitval report_exception : Stdlib.Format.formatter -> exn -> unitval errorf : loc:Location.t -> ('a, Stdlib.Format.formatter, unit, Location.error) Stdlib.format4 -> 'aval raise_errorf : ?loc:Location.t -> ('a, Stdlib.Format.formatter, unit, 'b) Stdlib.format4 -> 'aval _get_error_message_old : old_location_error -> stringval _get_error_message_new : location_report -> stringval get_error_message : location_report -> stringval _set_error_message_old : old_location_error -> string -> old_location_errorval _set_error_message_new : location_report -> string -> location_reportval set_error_message : location_report -> string -> location_reportval make_error_of_message_old : loc:Location.t -> string -> sub:(Location.t * string) list -> old_location_errorval make_error_of_message_new : loc:Location.t -> string -> sub:(Location.t * string) list -> location_reportval make_error_of_message : loc:Location.t -> string -> sub:(Location.t * string) list -> location_reportval print_error : Stdlib.Format.formatter -> Location.report -> unit
module type Helpers_intf = sig ... endmodule Helpers_impl : sig ... end