package ppx_deriving_encoding

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

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_deriving_encoding-0.4.1.tar.gz
md5=48a4f66b4a3e4017d99de8861013b1c6
sha512=c7cf2659ba8766bc5d89c119a87020271bce61409098fd88f9aac7c4cf5297ea697050a6510beb9a2414c4779900cd22b44efe710c3f6372d08ab2233229bd59

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 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_414.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_414.Parsetree.structure -> string
Sourceval str_of_signature : Astlib__.Ast_414.Parsetree.signature -> string
Sourceval str_of_core : Astlib__.Ast_414.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 obj_expr : loc:Ppxlib.Location.t -> ?kind:string -> ?v:string -> (Astlib.Ast_500.Parsetree.expression * bool) list -> Astlib.Ast_500.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
Sourcemodule type S = sig ... end
OCaml

Innovation. Community. Security.