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
type t = string option
let t = Sexp.To_sexp.(option string)
let name = "Pkg_version"
end)
let spec sctx (p : Package.t) =

View File

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

View File

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