package hg_lib

  1. Overview
  2. Docs

Module Expert.Hg_lib_factorySource

Sourcemodule type Arg = sig ... end
Sourcemodule type Hg_env = sig ... end
Sourcetype nonrec 'a with_global_args = ?repository:string -> ?cwd:string -> ?config:(string * string) list -> ?env:Async.Process.env -> 'a
Sourcetype nonrec 'a with_global_args_remote = server:Command_server.t -> ?repository:string -> ?cwd:string -> ?config:(string * string) list -> 'a
Sourcemodule Simple : Arg with type 'a With_args.t = 'a with_global_args with type 'a Output.t = 'a
Sourcemodule 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:

Sourcemodule 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.