package dune-private-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Parameters

module Data : sig ... end

Signature

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 parse_contents : Lexing.lexbuf -> f:(Lang.Instance.t -> 'a Decoder.t) -> 'a

Parse the contents of a versioned file after the first line has been read.

OCaml

Innovation. Community. Security.