package opam-format
Format library for opam 2.0
Install
Dune Dependency
Authors
-
VVincent Bernardoff <vb@luminar.eu.org>
-
RRaja Boujbel <raja.boujbel@ocamlpro.com>
-
RRoberto Di Cosmo <roberto@dicosmo.org>
-
TThomas Gazagnaire <thomas@gazagnaire.org>
-
LLouis Gesbert <louis.gesbert@ocamlpro.com>
-
FFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>
-
AAnil Madhavapeddy <anil@recoil.org>
-
GGuillem Rieu <guillem.rieu@ocamlpro.com>
-
RRalf Treinen <ralf.treinen@pps.jussieu.fr>
-
FFrederic Tuong <tuong@users.gforge.inria.fr>
Maintainers
Sources
2.0.10.tar.gz
md5=6f64322df0415af45430b0024d3dcdcc
sha512=49218a14c3b7e2f47052c1fb6907b54086f5af4adb43d120065c77f2c573d72136ac64f55f577a613eb43ebe29fbe14f9ac0e25756209ca7a572aa35a4410a5d
doc/opam-format/OpamFormat/index.html
Module OpamFormat
Source
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 -> 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
Source
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
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.
Specific Pps for items lists and fields (opamfile)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page