package git

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

Install

Dune Dependency

Authors

Maintainers

Sources

git-3.9.1.tbz
sha256=3b278c5b982cab87cc1164668733eadaa6ab74566d323a1093a98c2b3e7e0ece
sha512=dd153a505453d002d6e64ad49bdfdb57701127013109a5b5f13914e8d37368276f41e14545b7038a946c89ed983e4433866cc29c4ea74d8b5e7753a020e37ae5

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.