package opam-file-format

  1. Overview
  2. Docs
type file_name = string
type pos = {
  1. filename : file_name;
  2. start : int * int;
  3. stop : int * int;
}
type !'a with_pos = {
  1. pelem : 'a;
  2. pos : pos;
}
type relop_kind = relop
type relop = relop_kind with_pos
type logop_kind = logop
type logop = logop_kind with_pos
type pfxop_kind = pfxop
type pfxop = pfxop_kind with_pos
type env_update_op_kind = env_update_op
type env_update_op = env_update_op_kind with_pos
type value_kind =
  1. | Bool of bool
  2. | Int of int
  3. | String of string
  4. | Relop of relop * value * value
  5. | Prefix_relop of relop * value
  6. | Logop of logop * value * value
  7. | Pfxop of pfxop * value
  8. | Ident of string
  9. | List of value list with_pos
  10. | Group of value list with_pos
  11. | Option of value * value list with_pos
  12. | Env_binding of value * env_update_op * value
and value = value_kind with_pos
type opamfile_section = {
  1. section_kind : string with_pos;
  2. section_name : string with_pos option;
  3. section_items : opamfile_item list with_pos;
}
and opamfile_item_kind =
  1. | Section of opamfile_section
  2. | Variable of string with_pos * value
and opamfile_item = opamfile_item_kind with_pos
type opamfile = {
  1. file_contents : opamfile_item list;
  2. file_name : file_name;
}
OCaml

Innovation. Community. Security.