package core_kernel

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

Install

Dune Dependency

Authors

Maintainers

Sources

core_kernel-v0.14.0.tar.gz
sha256=93dc40648c5e4564cb72b72ab031474372f7b169e7ba7090b28e38e1b72282f1
md5=61420bfc94dbed1667be5e2ebd7c8240

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.