package opam-file-format

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type relop = [
  1. | `Eq
  2. | `Geq
  3. | `Gt
  4. | `Leq
  5. | `Lt
  6. | `Neq
]
type logop = [
  1. | `And
  2. | `Or
]
type pfxop = [
  1. | `Not
]
type file_name = string
type pos = file_name * int * int
type env_update_op =
  1. | Eq
  2. | PlusEq
  3. | EqPlus
  4. | ColonEq
  5. | EqColon
  6. | EqPlusEq
type value =
  1. | Bool of pos * bool
  2. | Int of pos * int
  3. | String of pos * string
  4. | Relop of pos * relop * value * value
  5. | Prefix_relop of pos * relop * value
  6. | Logop of pos * logop * value * value
  7. | Pfxop of pos * pfxop * value
  8. | Ident of pos * string
  9. | List of pos * value list
  10. | Group of pos * value list
  11. | Option of pos * value * value list
  12. | Env_binding of pos * value * env_update_op * value
type opamfile_section = {
  1. section_kind : string;
  2. section_name : string option;
  3. section_items : opamfile_item list;
}
and opamfile_item =
  1. | Section of pos * opamfile_section
  2. | Variable of pos * string * value
type opamfile = {
  1. file_contents : opamfile_item list;
  2. file_name : file_name;
}
OCaml

Innovation. Community. Security.