OpamFormat
OPAM files syntax and conversion tools
val value_pos : OpamParserTypes.FullPos.value -> OpamParserTypes.FullPos.pos
Get the position out of a value
string list list
)val lines_set : empty:'set -> add:('elt -> 'set -> 'set) ->
fold:(('elt -> lines -> lines) -> 'set -> lines -> lines) -> (string list, 'elt) OpamPp.t -> (lines, 'set) OpamPp.t
Provided an empty element, addition and fold operations with signatures as per Set.S, and a pp from lines to elements, returns a pp parsing from lines
val lines_map : empty:'map -> add:('k -> 'v -> 'map -> 'map) ->
fold:(('k -> 'v -> lines -> lines) -> 'map -> lines -> lines) -> (string list, 'k * 'v) OpamPp.t -> (lines, 'map) OpamPp.t
Provided an empty element, addition and fold operations with signatures as per Map.S, and a pp from lines to key, value pairs, returns a pp parsing from lines
value
, used by opam-syntax files (opamfile
)module V : sig ... end
These base converters raise Unexpected
when not run on the right input (which is then converted to Bad_format
by the parser.
module I : sig ... end