Versioned_file.Makemodule Data : sig ... endmodule Lang : sig ... endval load_exn : Stdune.Path.t -> f:(Lang.Instance.t -> 'a Decoder.t) -> 'aload_exn fn ~f loads a versioned file. It parses the first line, looks up the language, checks that the version is supported and parses the rest of the file with f.
val load :
Stdune.Path.t ->
f:(Lang.Instance.t -> 'a Decoder.t) ->
'a Stdune.Or_exn.tval parse_contents : Lexing.lexbuf -> f:(Lang.Instance.t -> 'a Decoder.t) -> 'aParse the contents of a versioned file after the first line has been read.