package git

  1. Overview
  2. Docs
Git format and protocol in pure OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

git-3.8.0.tbz
sha256=f6c628e3628d25686cec4cdff8132f9433e95938bdcb43975778d28d33a0b077
sha512=779bdd7a1657e859ed47b46ef9da007b5f43f4446f8cea831f29fae662efdd33a39aa2ee90b9f8d8b6360f2abb78038a7592633efa26e8adc5d2ae20d86d8015

doc/src/hkt/hkt.ml.html

Source file hkt.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
(** This is a module used to share functionality needed by modules that
    contain higher-kinded type behavior.

    HKT = Higher-Kinded Types *)
module HKT = struct
  type t

  external inj : 'a -> 'b = "%identity"
  external prj : 'a -> 'b = "%identity"
end

module Make_sched (T : sig
  type +'a t
end) =
struct
  type +'a s = 'a T.t

  include HKT
end

module Make_store (T : sig
  type ('k, 'v) t
end) =
struct
  type ('a, 'b) s = ('a, 'b) T.t

  include HKT
end
OCaml

Innovation. Community. Security.