val make : ?suggestion:string -> ('a, Stdlib.Format.formatter, unit, Location_.span -> t) Stdlib.format4 -> 'aval filename_only : ?suggestion:string -> ('a, Stdlib.Format.formatter, unit, string -> t) Stdlib.format4 -> 'aval to_string : t -> stringval raise_exception : t -> _val to_exception : ('a, t) Result.result -> 'aval catch : (unit -> 'a) -> ('a, t) Result.resultval accumulate_warnings : (warning_accumulator -> 'a) -> 'a with_warningsval warning : warning_accumulator -> t -> unitval raise_warnings : 'a with_warnings -> 'aAccumulate warnings into a global variable. See catch_warnings.
val catch_warnings : (unit -> 'a) -> 'a with_warningsCatch warnings accumulated by raise_warning. Safe to nest.
val catch_errors_and_warnings : (unit -> 'a) -> ('a, t) Result.result with_warningsCombination of catch and catch_warnings.
val handle_warnings : warn_error:bool -> 'a with_warnings -> ('a, [> `Msg of string ]) Result.resultPrint warnings to stderr. If warn_error is true and there was warnings, returns an Error.
val handle_errors_and_warnings : warn_error:bool -> ('a, t) Result.result with_warnings -> ('a, [> `Msg of string ]) Result.resultLike handle_warnings but works on the output of catch_errors_and_warnings. Error case is converted into a `Msg.