package uniq

  1. Overview
  2. Docs
A library which introspect and infer dependencies via codept, ocamlfind and opam

Install

dune-project
 Dependency

Authors

Maintainers

Sources

uniq-0.1.1.tbz
sha256=d7781ec4fedda463465b6c6fe99ab377a1a8f9c34a658a17d29a9b2fe414b85c
sha512=0cdd5273918d2c24f3ae6cb837650ca25d72ae0f714fc8d10238ae8f01572ae6dc2771f952a22cc4fc6981fcccd57e222f766aebfc39b0e8599078d6839e8a1d

doc/src/uniq.mod/uniq_digest.ml.html

Source file uniq_digest.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
include Stdlib.Digest

let error_msgf fmt = Fmt.kstr (fun msg -> Error (`Msg msg)) fmt
let pp ppf t = Fmt.string ppf (Stdlib.Digest.to_hex t)

let of_string str =
  match of_hex str with
  | v -> Ok v
  | exception Invalid_argument _ -> error_msgf "Invalid digest value: %S" str

let length = String.length (string "")

module Map = Map.Make (struct
  type nonrec t = t

  let compare = compare
end)