package ppx_yojson

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

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_yojson-1.1.0.tbz
sha256=cf33d358237bdddceec22bdb67cfc6d7a311bfcd18ec60b743426796bad92547
sha512=38414025ad0495fe5e6ac049e9b2a96c557bc358af556c56a41c8e8e2da4badc1f8db98257f2f435711089e4799f95de17de23264114dafc37a4162357f596c4

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.