package ppx_yojson

  1. Overview
  2. Docs

Module Ppx_yojson_lib.RaiseSource

Functions to raise ppx_yojson rewriting errors.

The loc argument should be the loc of the problematic expression within the payload and not the loc argument of the expand function to provide the user accurate information as to what should be fixed.

Sourceval unsupported_payload : loc:Ppxlib.Location.t -> 'a

Use this for unsupported payload expressions.

Sourceval unsupported_record_field : loc:Ppxlib.Location.t -> 'a

Use this for unsupported Longident used as record fields.

Sourceval too_many_fields_in_record_pattern : loc:Ppxlib.Location.t -> 'a

Use this for record pattern with more than 4 fields.

Sourceval bad_expr_antiquotation_payload : loc:Ppxlib.Location.t -> 'a

Use this for bad payload in expression antiquotation [%y ...].

Sourceval bad_pat_antiquotation_payload : loc:Ppxlib.Location.t -> 'a

Use this for bad payload in pattern antiquotation [%y? ...].

OCaml

Innovation. Community. Security.