package lens

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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.