package ppxlib

  1. Overview
  2. Docs
type t
val make : loc:t -> Ppxlib__.Import.String.t -> sub:(t * Ppxlib__.Import.String.t) Ppxlib__.Import.List.t -> t
val createf : loc:t -> ('a, Ppxlib__.Import.Unit.t, Ppxlib__.Import.String.t, t) Stdlib.format4 -> 'a
val message : t -> Ppxlib__.Import.String.t
val set_message : t -> Ppxlib__.Import.String.t -> t
val register_error_of_exn : (Ppxlib__.Import.Exn.t -> t Ppxlib__.Import.Option.t) -> Ppxlib__.Import.Unit.t

Register an exception handler. Exception registered this way will be properly displayed by report_exception.

val of_exn : Ppxlib__.Import.Exn.t -> t Ppxlib__.Import.Option.t
val to_extension : t -> string Location.loc * Migrate_parsetree.Ast_407.Parsetree.payload

Convert an error to an extension point. The compiler recognizes this and displays the error properly.

OCaml

Innovation. Community. Security.