package ecaml
Module Var.WrapSource
Idiomatic usage of Wrap looks like:
Var.Wrap.(SYMBOL_NAME <: TYPE) For example:
Var.Wrap.("inhibit-quit" <: bool) include Ecaml_value.Value.Type.S
val create :
Core.Sexp.t ->
('a -> Core.Sexp.t) ->
(Ecaml_value.Value.t -> 'a) ->
('a -> Ecaml_value.Value.t) ->
'a Ecaml_value.Value.Type.tval with_of_value_exn :
'a Ecaml_value.Value.Type.t ->
(Ecaml_value.Value.t -> 'a) ->
'a Ecaml_value.Value.Type.tstring_cached is like string, except it uses of_utf8_bytes_cached.
Represent an ocaml array as an elisp list, without creating an intermediate ocaml list.
option represents None as nil and Some a as cons v nil, where v is the representation of a.
nil_or t represents None as nil and Some a as v, where v is the representation of a. This is a common representation used by Elisp functions. But it is only correct if nil is not a representation of any value in t; in that situation use Type.option.
val alist :
'a Ecaml_value.Value.Type.t ->
'b Ecaml_value.Value.Type.t ->
('a * 'b) list Ecaml_value.Value.Type.tval tuple :
'a Ecaml_value.Value.Type.t ->
'b Ecaml_value.Value.Type.t ->
('a * 'b) Ecaml_value.Value.Type.tRepresent a tuple (a,b) as the elisp cons cell (a . b)
val tuple2_as_list :
'a Ecaml_value.Value.Type.t ->
'b Ecaml_value.Value.Type.t ->
('a * 'b) Ecaml_value.Value.Type.tRepresent a tuple (a,b) as the elisp list '(a b)
val sexpable :
(module Core.Sexpable with type t = 'a) ->
name:Core.Sexp.t ->
'a Ecaml_value.Value.Type.tEmbed a sexpable ocaml type, so we can save values of the type in emacs, e.g. as buffer local variables
A list of directories. Each element is a string (directory name) or nil (try default directory). nil values are converted to ".", which has the same meaning.