ocaml-core / base / core / lib / default.mli

The branch 'bash' does not exist.
(* [Default] is used to create new types for specifying default values for optional
   arguments, and having the type checker enforce the default.  See

type ('real, 'phantom) t = private 'real

val override : 'real -> ('real, _) t

module type S = sig
  type phantom
  type real
  type default = (real, phantom) t
  val default : default

val create : 'a -> (module S with type real = 'a)