Add name to Vfile_kind functor

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
Rudi Grinberg 2018-06-28 22:42:55 +06:30
parent ef5a2144dd
commit 79224ff194
3 changed files with 4 additions and 1 deletions

View File

@ -537,6 +537,7 @@ module Pkg_version = struct
module V = Vfile_kind.Make(struct module V = Vfile_kind.Make(struct
type t = string option type t = string option
let t = Sexp.To_sexp.(option string) let t = Sexp.To_sexp.(option string)
let name = "Pkg_version"
end) end)
let spec sctx (p : Package.t) = let spec sctx (p : Package.t) =

View File

@ -46,6 +46,7 @@ module Make
(T : sig (T : sig
type t type t
val t : t Sexp.To_sexp.t val t : t Sexp.To_sexp.t
val name : string
end) end)
: S with type t = T.t = : S with type t = T.t =
struct struct
@ -56,7 +57,7 @@ struct
module P = Utils.Persistent(struct module P = Utils.Persistent(struct
type nonrec t = t type nonrec t = t
let name = "VFILE_KIND" let name = "VFILE_KIND-" ^ T.name
let version = 1 let version = 1
end) end)

View File

@ -23,5 +23,6 @@ module Make
(T : sig (T : sig
type t type t
val t : t Sexp.To_sexp.t val t : t Sexp.To_sexp.t
val name : string
end) end)
: S with type t = T.t : S with type t = T.t