package opam-format

  1. Overview
  2. Docs

Helper module for manipulation of the raw syntax (opamfile) format. (the specific file handling modules are derived from this one)

val to_channel : 'a typed_file -> out_channel -> OpamParserTypes.FullPos.opamfile -> unit
val of_string : 'a typed_file -> string -> OpamParserTypes.FullPos.opamfile
val to_string : 'a typed_file -> OpamParserTypes.FullPos.opamfile -> string
val to_string_with_preserved_format : 'a typed_file -> ?format_from:'a typed_file -> ?format_from_string:string -> empty:'a -> ?sections: ('a, (string option * OpamParserTypes.FullPos.opamfile_item list) list) OpamFormat.I.fields_def -> fields:('a, OpamParserTypes.FullPos.value) OpamFormat.I.fields_def -> (OpamParserTypes.FullPos.opamfile, OpamTypes.filename * 'a) OpamPp.t -> 'a -> string