Bindoj_gen.GeneratorThis module provides functions to generate OCaml code.
val gen_structure_with_json_codec :
?self_contained:bool ->
?gen_json_shape_explanation:bool ->
?discriminator_value_accessor:bool ->
?json_shape_explanation_resolution:
Json_codec.json_shape_explanation_resolution ->
?codec:Bindoj_typedesc.Type_desc.Coretype.codec ->
?type_decl:[ `expr of Ppxlib.expression | `path of string ] ->
formatter:Kxclib.ppf ->
Bindoj_typedesc.Type_desc.type_decl ->
unitWrites the OCaml code of the structures of Caml_datatype.gen_structure and Json_codec.gen_json_codec.
val gen_signature_with_json_codec :
?gen_json_shape_explanation:bool ->
?discriminator_value_accessor:bool ->
?codec:Bindoj_typedesc.Type_desc.Coretype.codec ->
gen_type_decl:bool ->
formatter:Kxclib.ppf ->
Bindoj_typedesc.Type_desc.type_decl ->
unitWrites the OCaml code of the signatures of Caml_datatype.gen_signature and Json_codec.gen_json_codec_signature.