package opam-file-format

  1. Overview
  2. Docs

Module OpamPrinter.FullPosSource

OpamPrinter transitional module with full position types

Printers for the value and opamfile formats

Sourceval relop_kind : [< OpamParserTypes.FullPos.relop_kind ] -> string

Converts OpamParserTypes.FullPos.relop_kind to its string representation (=, !=, ..., ~).

Sourceval logop_kind : [< OpamParserTypes.FullPos.logop_kind ] -> string

Converts OpamParserTypes.FullPos.logop_kind to its string representation (& and |).

Sourceval pfxop_kind : [< OpamParserTypes.FullPos.pfxop_kind ] -> string

Converts OpamParserTypes.FullPos.logop_kind to its string representation (& and |).

Sourceval env_update_op_kind : OpamParserTypes.FullPos.env_update_op_kind -> string

Converts OpamParserTypes.FullPos.env_update_op_kind to its string representation (=, +=, ..., =:).

Converts OpamParserTypes.FullPos.relop to its string representation (=, !=, ..., ~).

Converts OpamParserTypes.FullPos.logop to its string representation (& and |).

Converts OpamParserTypes.FullPos.pfxop to its string representation (! and ?).

Sourceval env_update_op : OpamParserTypes.FullPos.env_update_op -> string

Converts OpamParserTypes.FullPos.env_update_op to its string representation (=, +=, ..., =:).

Converts value to a string always using LF-encoding of newlines.

Converts a list of values 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.

Normalised output for opam syntax files

Sourcemodule Normalise : sig ... end

opam normalised file format, for signatures.

Format-preserving reprinter

Sourcemodule Preserved : sig ... end

Random utility functions

Compares structurally, without considering file positions

Compares structurally, without considering file positions

OCaml

Innovation. Community. Security.