package git

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

Install

Dune Dependency

Authors

Maintainers

Sources

git-3.13.0.tbz
sha256=f7cc36026cdefc1f9837f10d7d26f457c236cb21547fcad210e71483561b55d3
sha512=728f21c3483bdead9420767cb3e57901be1cff428fceb814be3cad817b2d78511d35f559962469e85d3919c59577884d353cb883ac749e6e2b92fb7d0deec4f4

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.