package lens

  1. Overview
  2. Docs
Functional lenses

Install

Dune Dependency

Authors

Maintainers

Sources

v1.2.4.tar.gz
sha256=ec2205a1f5a9087026b7906f40ced312a0ec9d66deff6c95ea0388c88960240e
md5=563750d717d0ec581e91f2c537ca0b26

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 option -> Parsetree.signature -> Parsetree.signature_item
val define_module : Location.t -> string option -> 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 option
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.