package core_kernel

  1. Overview
  2. Docs
Industrial strength alternative to OCaml's standard library

Install

Dune Dependency

Authors

Maintainers

Sources

v0.14.1.tar.gz
sha256=1d91a0d58e9a98809eb3bc888ae716e786c68ad5d07a874c37d9c1ef9fd24438
md5=77b25affd5155128ca757d38e496d89f

doc/core_kernel.enum/Enum/index.html

Module Enum

module type S = sig ... end
type 'a t = (module S with type t = 'a)
val enum : 'a t -> (string * 'a) list
val to_string_hum : 'a t -> 'a -> string

Map a constructor name to a command-line string: downcase the name and convert _ to -.

val check_field_name : 'a t -> 'a -> (_, _, _) Core_kernel.Field.t_with_perm -> unit
val assert_alphabetic_order_exn : Core_kernel.Source_code_position.t -> 'a t -> unit
type ('a, 'b) make_param = ?represent_choice_with:string -> ?aliases:string list -> string -> doc:string -> 'a t -> 'b Core_kernel.Command.Param.t
val make_param : f:('a Core_kernel.Command.Arg_type.t -> 'b Core_kernel.Command.Flag.t) -> ('a, 'b) make_param
val make_param_optional_with_default_doc : default:'a -> ('a, 'a) make_param
val arg_type : 'a t -> 'a Core_kernel.Command.Arg_type.t
val doc : ?represent_choice_with:string -> 'a t -> doc:string -> string
module Make_stringable (M : S) : Core_kernel.Stringable with type t := M.t
OCaml

Innovation. Community. Security.