package ecaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module type Wrap = sig ... end
type 'a t = {
  1. symbol : Symbol.t;
  2. type_ : 'a Ecaml_value.Value.Type.t;
}
val type_ : 'a t -> 'a Ecaml_value.Value.Type.t
val symbol : 'a t -> Symbol.t
val sexp_of_t : ('a -> Sexplib0.Sexp.t) -> 'a t -> Sexplib0.Sexp.t
type 'a var := 'a t
val create : Symbol.t -> 'a Ecaml_value.Value.Type.t -> 'a t
module Wrap : Wrap with type 'a t := 'a t

Idiomatic usage of Wrap looks like:

module And_value : sig ... end
module And_value_option : sig ... end
val symbol_as_value : _ t -> Ecaml_value.Value.t
val default_value_exn : 'a t -> 'a

(describe-function 'default-value) (Info-goto-node "(elisp)Default Value")

val default_value_is_defined : _ t -> bool

(describe-function 'default-boundp) (Info-goto-node "(elisp)Default Value")

val set_default_value : 'a t -> 'a -> unit

(describe-function 'set-default) (Info-goto-node "(elisp)Default Value")

val make_buffer_local_always : _ t -> unit

(describe-function 'make-variable-buffer-local) (Info-goto-node "(elisp)Creating Buffer-Local")

val is_buffer_local_always : _ t -> bool

is_buffer_local_always t returns true if t automatically becomes buffer-local when set. Calling make_buffer_local_always t causes is_buffer_local_always t = true.

val is_buffer_local_if_set : _ t -> Ecaml_value__.Value0.t -> bool

(describe-function 'local-variable-if-set-p ) (Info-goto-node "(elisp)Creating Buffer-Local")

OCaml

Innovation. Community. Security.