module Lang : sig ... end
val load_exn : Stdune.Path.t -> f:(Lang.Instance.t -> 'a Decoder.t) -> 'a
load_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.t
val parse_contents : Stdlib.Lexing.lexbuf -> f:(Lang.Instance.t -> 'a Decoder.t) -> 'a
Parse the contents of a versioned file after the first line has been read.