package gemini

  1. Overview
  2. Docs

Wraps a string value promoting it to type Enum enum if it is parsable as such, `String string otherwise.

type enum = t
val all_of_enum : enum list
val sexp_of_enum : enum -> Sexplib0.Sexp.t
val enum_of_sexp : Sexplib0.Sexp.t -> enum
type t =
  1. | Enum of enum
  2. | String of string
val to_yojson : t -> Yojson.Safe.t
val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
include Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
include Csvfields.Csv.Stringable with type t := t
val to_string : t -> string
val of_string : string -> t
val is_csv_atom : bool
val rev_csv_header' : string list -> 'a -> 'b -> string list
val rev_csv_header_spec' : Csvfields.Csv.Spec.t list -> 'a -> 'b -> Csvfields.Csv.Spec.t list
val t_of_row' : 'a -> string list -> (unit -> t) * string list
val write_row_of_t' : is_first:bool -> is_last:bool -> writer:(string -> unit) -> 'a -> 'b -> t -> unit
val csv_header : string list
val csv_header_spec : Csvfields.Csv.Spec.t list
val t_of_row : string list -> t
val row_of_t : t -> string list
val csv_load : ?separator:char -> string -> t list
val csv_load_in : ?separator:char -> Core.In_channel.t -> t list
val csv_save_fn : ?separator:char -> (string -> unit) -> t list -> unit
val csv_save_out : ?separator:char -> Core.Out_channel.t -> t list -> unit
val csv_save : ?separator:char -> string -> t list -> unit
val to_enum : t -> enum option
val of_enum : enum -> t
OCaml

Innovation. Community. Security.