package git

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

Install

Dune Dependency

Authors

Maintainers

Sources

git-3.16.1.tbz
sha256=c035bdcccd9e4d2f48c6d9cdc65e61fc10838ecf1d8a6f2a376ae20a8a924803
sha512=8173b5f64ad2e142aa6bd7a1c5b7d895a9e3fbf90b192d8021a32abb9430b62dd426d4b9b5856698fbae1a1bca2c30a22c270f6d361874c3d846533320ca51ea

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.