module 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 : Stdlib.Lexing.lexbuf -> f:(Lang.Instance.t -> 'a Decoder.t) -> 'aParse the contents of a versioned file after the first line has been read.