package ppx_yojson

  1. Overview
  2. Docs
PPX extension for Yojson literals and patterns

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_yojson-0.2.0.tbz
sha256=0d8cc2c241224eb1772ffa72e4035e8a71b3a4cf76bf11dc6ec7d9f78bb1332f
md5=5f7525ef90823186e366616eaeb3f630

doc/ppx_yojson._lib/Ppx_yojson_lib/Raise/index.html

Module Ppx_yojson_lib.Raise

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.

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

Use this for unsupported payload expressions.

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

Use this for unsupported Longident used as record fields.

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

Use this for record pattern with more than 4 fields.

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

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

OCaml

Innovation. Community. Security.