package ppx_yojson

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

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_yojson-1.3.0.tbz
sha256=df1b4246969d6e1e2ff53c4c41a674c9653f214d93ad1421788ba55cf539266f
sha512=a4b5663ee2dec0c0fe0dc3e4f5ec59a1d23e057c1759c2433b45318c3a64f709e7e3ab91c98b9a4e1e5c9e3290a2772f5b7450ecf58f6280e52df033a60d877a

doc/src/ppx_yojson._lib/raise.ml.html

Source file raise.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
let unsupported_payload ~loc =
  Location.raise_errorf ~loc "ppx_yojson: unsupported payload"

let unsupported_record_field ~loc =
  Location.raise_errorf ~loc "ppx_yojson: unsupported record field"

let too_many_fields_in_record_pattern ~loc =
  Location.raise_errorf ~loc
    "ppx_yojson: record patterns with more than 4 fields aren't supported. \
     Consider using ppx_deriving_yojson to handle more complex json objects."

let bad_expr_antiquotation_payload ~loc =
  Location.raise_errorf ~loc
    "ppx_yojson: bad antiquotation payload, should be a single expression"

let bad_pat_antiquotation_payload ~loc =
  Location.raise_errorf ~loc
    "ppx_yojson: bad antiquotation payload, should be a pattern"
OCaml

Innovation. Community. Security.