irmin-pack

Irmin backend which stores values in a pack file
IN THIS PACKAGE
Module Irmin_pack . Version
type t = [
| `V1
| `V2
| `V3
]

The type for version numbers.

val t : t Irmin.Type.t
val compare : t -> t -> int
val latest : t
val pp : t Fmt.t

pp is the pretty-format for version numbers.

val to_bin : t -> string

to_bin t is the 8-bytes binary representation of t.

val of_bin : string -> t option

of_bin s is Some t is to_bin t is s and None otherwise.

val invalid_arg : string -> 'a

invalid_arg str raises Invalid_argument.

exception Invalid of {
expected : t;
found : t;
}