Ppx_deriving_biniouval direction_to_string : ?exn:bool -> direction -> stringConvert a direction to a string. The optional argument ?exn, true by default, adds a suffix _exn to the Of_biniou string only.
val mangle_lid :
?exn:bool ->
direction ->
Ppxlib.Longident.t ->
Ppxlib.Longident.tval mangle_lid' :
loc:Ppxlib.location ->
?exn:bool ->
direction ->
Ppxlib.Longident.t ->
Ppxlib.Longident.t Ppxlib.locval mangle_type_decl :
?exn:bool ->
direction ->
Ppxlib.type_declaration ->
stringval mangle_type_decl' :
loc:Ppxlib.location ->
?exn:bool ->
direction ->
Ppxlib.type_declaration ->
string Ppxlib.locval mangle_type_var : dir:direction -> string -> stringGiven a type variable, produce the name of its serialiser.
val mangle_type_var' :
loc:Ppxlib.location ->
dir:direction ->
string ->
string Ppxlib.locval parse_options : (string * Ppxlib.expression) list -> optionsAn attribute that suppresses warning 32, “unused-value-declaration”.
An attribute that suppresses warning 39, “unused-rec-flag”.
val type_decl_to_serialiser_type :
dir:direction ->
?exn:bool ->
Ppxlib.type_declaration ->
Ppxlib.core_typeFor pattern matching, provide a catch-all that raises Ppx_deriving_biniou_runtime.Could_not_convert.
module Core_type_to_serialiser : sig ... endinclude module type of struct include Core_type_to_serialiser endval core_type_to_serialiser :
dir:direction ->
Ppxlib.core_type ->
Ppxlib.expressionGiven a core_type, return a Parsetree expression that is a function converting to or from biniou, depending on the direction argument.
module Type_decl_to_serialiser : sig ... endinclude module type of struct include Type_decl_to_serialiser endval type_decl_to_serialiser :
dir:direction ->
Ppxlib.type_declaration ->
Ppxlib.expressionGiven a type_decl, return a Parsetree expression that is a function converting to or from biniou, depending on the direction argument.
val type_decl_add_fun_params :
dir:direction ->
Ppxlib.type_declaration ->
Ppxlib.expression ->
Ppxlib.expressionGiven an expression, wrap it in a function (expression) that grabs the _tvar_a_<dir>_biniou arguments, if needed.
val type_decl_apply_fun_params :
dir:direction ->
Ppxlib.type_declaration ->
Ppxlib.expression ->
Ppxlib.expressionGiven an expression, wrap it in an application (expression) that passes it the _tvar_a_<dir>_biniou arguments, if needed.
val type_decls_to_serialiser_str :
dir:direction ->
Ppxlib.type_declaration list ->
Ppxlib.structureval type_decls_to_aliases_str :
options:options ->
Ppxlib.type_declaration list ->
Ppxlib.structureval type_decl_to_serialiser_vd :
loc:Ppxlib__.Location.t ->
dir:direction ->
?exn:bool ->
Ppxlib.type_declaration ->
Ppxlib.value_descriptionval type_decl_to_serialiser_vds :
to_biniou:bool ->
of_biniou:bool ->
options:options ->
loc:Ppxlib__.Location.t ->
Ppxlib.type_declaration ->
Ppxlib.value_description list