package ppx_deriving_encoding

  1. Overview
  2. Docs
Ppx deriver for json-encoding

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ppx_deriving_encoding-0.4.2.tar.gz
md5=a86629f174451149bb076baeba53d1a4
sha512=6326141ea692b030c8b9059d5f7bf32f40dd8eb1c6d06028db8ef5e23887df9e300977a5247bfaa722aecd84faef19dfff5f1d0f88ddc2f7555099827cca048e

doc/ppx_deriving_encoding.lib/Ppx_deriving_encoding_lib/Utils/index.html

Module Ppx_deriving_encoding_lib.UtilsSource

Sourceval verbose : int
Sourceval fake : bool
Sourceval remove_prefix_var : bool
Sourceval debug : ?v:int -> ?force:bool -> ('a, unit, string, unit) format4 -> 'a
Sourceval json_encoding_dot : string ref
Sourceval json_encoding_tmp : string ref
Sourceval wrap : string option -> unit
Sourceval unwrap : unit -> unit
Sourceval raise_error : loc:Ppxlib.Location.t -> ('a, Format.formatter, unit, 'b) format4 -> 'a
Sourceval enc_names : (string, string) Hashtbl.t
Sourceval enc_name : ?search:bool -> string -> string
Sourceval add_enc_name : string -> string -> unit
Sourceval enc_mod : string -> string
Sourceval enc_var : loc:Ppxlib.Location.t -> string -> Astlib.Ast_502.Parsetree.expression
Sourceval enc_apply : loc:Ppxlib.Location.t -> string -> Astlib.Ast_502.Parsetree.expression list -> Astlib.Ast_502.Parsetree.expression
Sourceval enc_apply0 : loc:Ppxlib.Location.t -> string -> (Astlib.Ast_502.Asttypes.arg_label * Astlib.Ast_502.Parsetree.expression) list -> Astlib.Ast_502.Parsetree.expression
Sourceval pexp_fun : Astlib.Ast_502.Parsetree.pattern -> Ppxlib.expression -> Astlib.Ast_502.Parsetree.expression
Sourceval esome : Ppxlib.expression -> Astlib.Ast_502.Parsetree.expression
Sourceval add_params_fun_sig : Astlib.Ast_502.Parsetree.core_type -> Ppxlib.core_type list -> Astlib.Ast_502.Parsetree.core_type
Sourceval param_names : (Ppxlib.core_type * 'a) list -> string list
Sourceval string_literal : Ppxlib.constant -> string option
Sourceval get_expr_attr : Ppxlib.payload -> Ppxlib.expression option
Sourceval get_string_attr : Ppxlib.payload -> string option
Sourceval rm_prefix_of_expr : Ppxlib.expression -> [> `bool of bool | `length of int | `prefix of string ] option
Sourceval get_rm_prefix_attr : Ppxlib.payload -> [> `bool of bool | `length of int | `prefix of string ] option
Sourceval to_snake : ?sep:char -> string -> string
Sourceval to_camel : ?pascal:bool -> string -> string
Sourcetype field_attributes = {
  1. fa_field : string * bool * Ppxlib.expression option;
  2. fa_key : string;
  3. fa_title : Ppxlib.expression option;
  4. fa_description : Ppxlib.expression option;
  5. fa_assoc : bool option;
  6. fa_enum : bool option;
  7. fa_exclude : Ppxlib.expression option;
  8. fa_obj : bool option;
  9. fa_enc : Ppxlib.expression option;
  10. fa_obj1 : string option;
  11. fa_merge : bool;
  12. fa_construct_default : bool;
  13. fa_set : Ppxlib.expression option;
  14. fa_map : Ppxlib.expression option option;
  15. fa_schema : (Ppxlib.expression -> Ppxlib.expression) option;
}
Sourceval transform_case : ?case:[< `camel | `cap | `kebab | `lower | `pascal | `snake | `upper ] -> ?typ:[< `cons | `variant cons ] -> string -> string
Sourceval field_attrs : key:string -> ?opt:bool -> ?option:string -> ?case:[< `camel | `cap | `kebab | `lower | `pascal | `snake | `upper ] -> ?set:Ppxlib.expression -> ?map:Ppxlib.expression option -> ?schema:(Ppxlib.expression -> Ppxlib.expression) -> Ppxlib.attribute list -> field_attributes
Sourceval pp_expression : Format.formatter -> Astlib__.Ast_502.Parsetree.expression -> unit
Sourcetype cs_attributes = {
  1. cs_kind : string option;
  2. cs_kind_label : string option;
  3. cs_assoc : bool option;
  4. cs_enum : bool option;
  5. cs_transform : string -> string;
  6. cs_obj : bool option;
  7. cs_enc : Ppxlib.expression option;
  8. cs_title : Ppxlib.expression option;
  9. cs_description : Ppxlib.expression option;
  10. cs_ignore : bool;
  11. cs_rm_prefix : [ `bool of bool | `prefix of string | `length of int ];
  12. cs_obj1 : string option;
  13. cs_empty : bool option;
  14. cs_case : Ppxlib.expression option;
  15. cs_schema : (Ppxlib.expression -> Ppxlib.expression) option;
}
Sourceval constructor_attrs : ?case:[< `camel | `cap | `kebab | `lower | `pascal | `snake | `upper ] -> ?typ:[< `cons | `variant cons ] -> ?kind:string option -> Ppxlib.attribute list -> cs_attributes
Sourcetype core_attributes = {
  1. co_assoc : bool option;
  2. co_enum : bool option;
  3. co_exclude : Ppxlib.expression option;
  4. co_obj : bool option;
  5. co_enc : Ppxlib.expression option;
  6. co_obj1 : string option;
  7. co_merge : bool;
  8. co_rm_prefix : [ `bool of bool | `prefix of string | `length of int ] option;
  9. co_set : Ppxlib.expression option;
  10. co_map : Ppxlib.expression option option;
  11. co_opt : Ppxlib.expression option option;
  12. co_schema : (Ppxlib.expression -> Ppxlib.expression) option;
}
Sourceval core_attrs : ?assoc:bool -> ?enum:bool -> ?obj:bool -> ?enc:Ppxlib.expression -> ?obj1:string -> ?set:Ppxlib.expression -> ?map:Ppxlib.expression option -> ?schema:(Ppxlib.expression -> Ppxlib.expression) -> Ppxlib.attribute list -> core_attributes
Sourceval new_var : unit -> string
Sourceval str_of_structure : Astlib__.Ast_502.Parsetree.structure -> string
Sourceval str_of_signature : Astlib__.Ast_502.Parsetree.signature -> string
Sourceval str_of_core : Astlib__.Ast_502.Parsetree.core_type -> string
Sourceval flat_tuple_length : [< `merge of 'a | `obj of 'b list ] list -> int
Sourceval simple_obj_tuple : ?v:string -> ?i:int -> loc:'a -> (loc:'a -> string -> 'b) -> (loc:'a -> 'b list -> 'b) -> 'c list -> 'b
Sourceval encaps_tuple : ?v:string -> ?i:int -> loc:'a -> (loc:'a -> string -> 'b) -> (loc:'a -> 'b list -> 'b) -> [< `merge of 'c | `obj of 'd list ] list -> 'b
Sourceval simple_obj : loc:Ppxlib.Location.t -> kind:string -> Astlib.Ast_502.Parsetree.expression list -> Astlib.Ast_502.Parsetree.expression
Sourceval encaps_merge : loc:Ppxlib.Location.t -> ?kind:string -> [< `merge of Astlib.Ast_502.Parsetree.expression | `obj of Astlib.Ast_502.Parsetree.expression list ] list -> Astlib.Ast_502.Parsetree.expression
Sourceval obj_expr : loc:Ppxlib.Location.t -> ?kind:string -> ?v:string -> (Astlib.Ast_502.Parsetree.expression * bool) list -> Astlib.Ast_502.Parsetree.expression
Sourceval remove_prefix : string -> int -> string
Sourceval same_prefix : string list -> int
Sourceval remove_prefix_options : string list -> [> `bool of bool | `length of int | `prefix of string ] option -> int
Sourceval pexp_function : loc:Ppxlib.Location.t -> Ppxlib.cases -> Astlib.Ast_502.Parsetree.expression
Sourcemodule type S = sig ... end
OCaml

Innovation. Community. Security.