package opam-format
Format library for opam 2.2
Install
Dune Dependency
Authors
-
David Allsopp
-
VVincent Bernardoff <vb@luminar.eu.org>
-
RRaja Boujbel <raja.boujbel@ocamlpro.com>
-
KKate Deplaix <kit-ty-kate@outlook.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.2.1.tar.gz
md5=d9b85326877d02ffee49caee2384f170
sha512=17d7d83b9de118332c121b9d3aa2e48f62a6270ea23e730a536b0f4ff060df85238c7c4ab53a89bcc3b3193d52d14358831bd9bed30a4ac699e44e4c3003b8b0
doc/src/opam-format/opamSysPkg.ml.html
Source file opamSysPkg.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
(**************************************************************************) (* *) (* Copyright 2019 OCamlPro *) (* *) (* All rights reserved. This file is distributed under the terms of the *) (* GNU Lesser General Public License version 2.1, with the special *) (* exception on linking described in the file LICENSE. *) (* *) (**************************************************************************) (* basic ops *) type t = string let of_string s = s let to_string s = s let compare = OpamStd.String.compare_case let equal s r = compare s r = 0 let to_json s = `O [ ("sys_package", `String s) ] let of_json = function | `O dict -> (match OpamStd.List.assoc String.equal "sys_package" dict with | `String s -> Some (of_string s) | _ -> None | exception Not_found -> None) | _ -> None module O = struct type tmp = t type t = tmp let compare = compare let to_string = to_string let to_json = to_json let of_json = of_json end module Set = OpamStd.Set.Make(O) module Map = OpamStd.Map.Make(O) let raw_set set = OpamStd.String.Set.fold (fun spkg set-> Set.add (of_string spkg) set) set Set.empty type status = { s_available : Set.t; (** Package available but not installed *) s_not_found : Set.t; (** Package unavailable on this system *) } let status_empty = { s_available = Set.empty; s_not_found = Set.empty; } let string_of_status sp = Printf.sprintf "available: %s; not_found: %s" (Set.to_string sp.s_available) (Set.to_string sp.s_not_found)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>