package drom_lib

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Drom_lib.MiscSource

Sourcemodule EzString : sig ... end
Sourceval option_value : 'a option -> default:'a -> 'a
Sourceval call : ?stdout:Unix.file_descr -> string array -> unit
Sourceval call_get_fst_line : string -> string option

run a cmd and return the first line of output

Sourceval date : unit -> Unix.tm
Sourceval homepage : Types.project -> string option
Sourceval sphinx_target : Types.project -> string
Sourceval odoc_target : Types.project -> string
Sourceval doc_api : Types.project -> string option
Sourceval doc_gen : Types.project -> string option
Sourceval p_dependencies : Types.package -> (string * Types.dependency) list
Sourceval p_pack_modules : Types.package -> bool
Sourceval p_version : Types.package -> string
Sourceval p_tools : Types.package -> (string * Types.dependency) list
Sourceval p_synopsis : Types.package -> string
Sourceval p_description : Types.package -> string
Sourceval p_authors : Types.package -> string list
Sourceval wget : url:string -> output:string -> unit
Sourceval bug_reports : Types.project -> string option
Sourceval subst : string -> (string -> string) -> string
Sourceval list_opam_packages : string -> string list
Sourceval semantic_version : string -> (int * int * int) option
Sourceval underscorify : string -> string
Sourceval library_name : Types.package -> string
Sourceval package_lib : Types.package -> string
Sourceval deps_package : Types.project -> Types.package
Sourceval modules : Types.package -> EzCompat.StringSet.elt list
Sourceval add_skip : string -> ('a * string) list -> ('a * string) list
Sourceval dev_repo : Types.project -> string option
Sourceval vendor_packages : unit -> string list
Sourceval library_module : Types.package -> string
Sourceval string_of_kind : Types.kind -> string
Sourceval project_skeleton : string option -> string
Sourceval package_skeleton : Types.package -> string
Sourceval hook : ?args:string list -> string -> unit
Sourceval before_hook : ?args:string list -> string -> unit
Sourceval after_hook : ?args:string list -> string -> unit
Sourceval infimum : default:string -> ?current:string -> bottom:string -> Types.version list -> [ `conflict of string * string | `found of string | `unknown ]

infimum ~default ~current ~bottom versions computes the infimum (ie. lower highest) version according to versions constraints. bottom is used as the minimal version and default and current for NoVersion and Version respectively.

  • returns

    `unknown when no infimum can be infered. For example, with the only constraint (>1.2.3) we can't decide a priori a infimum for it since we don't know what versions are available after 1.2.3 (maybe 1.2.4 or 1.2.7 or whatever). It returns `found version when an infimum version is found and `conflict (v, c) when the infimum found so far v doesn't match the constraint c.

OCaml

Innovation. Community. Security.