package git

All checked builds pass
  1. Overview
  2. Docs
Git format and protocol in pure OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

git-3.19.0.tbz
sha256=227385f431a39cda22094615ae4c9d834bc91d51cc2d82e1739db307f9987c6d
sha512=29842d41018a3b6607be9da5967c215fd42ea047a529de3a19d9f51048db67842acbdae572eb0bb2e59f3d181fd787f3f0c304e7538112ebbaa310f1b6ab498b

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