Module OpamFormatSource
OPAM files syntax and conversion tools
Get the position out of a value
low-level Pps for the Lines parser (string list list)
Source
val lines_set :
empty:'set ->
add:('elt -> 'set -> 'set) ->
fold:
(('elt -> OpamFormat.lines -> OpamFormat.lines) ->
'set ->
OpamFormat.lines ->
OpamFormat.lines) ->
(string list, 'elt) OpamPp.t ->
(OpamFormat.lines, 'set) OpamPp.tProvided 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
Source
val lines_map :
empty:'map ->
add:('k -> 'v -> 'map -> 'map) ->
fold:
(('k -> 'v -> OpamFormat.lines -> OpamFormat.lines) ->
'map ->
OpamFormat.lines ->
OpamFormat.lines) ->
(string list, 'k * 'v) OpamPp.t ->
(OpamFormat.lines, 'map) OpamPp.tProvided 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
Pps for the type value, used by opam-syntax files (opamfile)
These base converters raise Unexpected when not run on the right input (which is then converted to Bad_format by the parser.