summaryrefslogtreecommitdiff
path: root/lib/kernel/lang.mli
blob: 6d26a1da98af5e7569a0a2dc13cf864cdb45f56c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
(** Two-letter lowercase ISO-639-1 language codes. The set is deliberately open:
    overlays add languages as data, never as code. *)
type t = private string

val of_string : string -> (t, string) result
val of_string_exn : string -> t
val to_string : t -> string
val compare : t -> t -> int
val equal : t -> t -> bool
val t_of_sexp : Sexplib0.Sexp.t -> t
val sexp_of_t : t -> Sexplib0.Sexp.t