package hg_lib

  1. Overview
  2. Docs
module type Arg = sig ... end
module type Hg_env = sig ... end
type nonrec 'a with_global_args = ?repository:string -> ?cwd:string -> ?config:(string * string) list -> ?env:Async.Process.env -> 'a
type nonrec 'a with_global_args_remote = server:Command_server.t -> ?repository:string -> ?cwd:string -> ?config:(string * string) list -> 'a
module Simple : Arg with type 'a With_args.t = 'a with_global_args with type 'a Output.t = 'a
module Async : Arg with type 'a With_args.t = 'a with_global_args with type 'a Output.t = 'a Async.Deferred.Or_error.t

Same as Async, but with the following changes to fix the hg environment:

module Make_lib (M : sig ... end) : sig ... end

To satisfy this functor, define a signature S for your hg library with respect to the abstract type constructors 'a with_args and 'a output. Then generate the interface for your library as follows:

OCaml

Innovation. Community. Security.