Page
Library
Module
Module type
Parameter
Class
Class type
Source
OpamPrinter
SourceFunctions for converting parsed opam files back to strings
value
and opamfile
formatsConverts OpamParserTypes.relop
to its string representation (=
, !=
, ..., ~
).
Converts OpamParserTypes.logop
to its string representation (&
and |
).
Converts OpamParserTypes.pfxop
to its string representation (!
and ?
).
Converts OpamParserTypes.env_update_op
to its string representation (=
, +=
, ..., =:
).
Converts value
to a string always using LF-encoding of newlines.
Converts a list of value
s to a string always using LF-encoding of newlines.
Converts an opamfile
to a string.
Writes an opamfile
to a Format.formatter
. The function ensures that all newlines are sent using Format
's break instructions (and so ultimately are processed with the out_newline
function of the formatter) but it is the responsibility of the caller to ensure that the formatter is configured for the required output, if necessary.
Compares structurally, without considering file positions
val opamfile_item_equals :
OpamParserTypes.opamfile_item ->
OpamParserTypes.opamfile_item ->
bool
Compares structurally, without considering file positions