package lens

  1. Overview
  2. Docs
Functional lenses

Install

Dune Dependency

Authors

Maintainers

Sources

v1.2.2.tar.gz
sha256=e83e7571631cb60eab57aa96999f6fd7ed0e4c3100a8d3a8f70a15144367064b
md5=c3cfacd8927f19d345c71da749b203d9

doc/lens_ppx_deriving/Lens_ppx_deriving/Ppx_deriving_lens/index.html

Module Lens_ppx_deriving.Ppx_deriving_lens

val deriver : string
val raise_errorf : ?sub:Location.error list -> ?loc:Location.t -> ('a, unit, string, 'b) Stdlib.format4 -> 'a
type lens_options = {
  1. prefix : bool;
  2. submodule : bool;
}
val lens_default_options : lens_options
val bool_option : string -> string -> Parsetree.expression -> bool
val parse_options : (string * Parsetree.expression) list -> lens_options
val updated_record : string -> string -> string -> Parsetree.expression
val declare_module : Location.t -> string -> Parsetree.signature -> Parsetree.signature_item
val define_module : Location.t -> string -> Parsetree.value_binding list -> Parsetree.structure_item_desc
val lens_name : deriver_options:lens_options -> Parsetree.type_declaration -> string -> string
val module_name : deriver_options:lens_options -> Parsetree.type_declaration -> string
val wrap_in_submodule_sig : deriver_options:lens_options -> Parsetree.type_declaration -> Location.t -> Parsetree.signature -> Parsetree.signature
val wrap_in_submodule_struct : deriver_options:lens_options -> Parsetree.type_declaration -> Location.t -> Parsetree.value_binding list -> Parsetree.structure_item
val str_of_type : options:(string * Parsetree.expression) list -> path:'a -> Parsetree.type_declaration -> Parsetree.structure_item
val type_named : string -> Parsetree.core_type
val sig_of_type : options:(string * Parsetree.expression) list -> path:'a -> Parsetree.type_declaration -> Parsetree.signature
OCaml

Innovation. Community. Security.