package ppxlib

  1. Overview
  2. Docs

Auxiliary type for reporting syntax errors

type error =
  1. | Unclosed of Warnings.loc * string * Warnings.loc * string
  2. | Expecting of Warnings.loc * string
  3. | Not_expecting of Warnings.loc * string
  4. | Applicative_path of Warnings.loc
  5. | Variable_in_scope of Warnings.loc * string
  6. | Other of Warnings.loc
  7. | Ill_formed_ast of Warnings.loc * string
  8. | Invalid_package_type of Warnings.loc * string
exception Error of error
exception Escape_error
val report_error : Stdlib.Format.formatter -> error -> unit
  • deprecated

    Use Location.error_of_exn, Location.report_error.

val location_of_error : error -> Warnings.loc
val ill_formed_ast : Warnings.loc -> string -> 'a
OCaml

Innovation. Community. Security.