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.0.tbz
sha256=998588f1053cf03161a4bded6d7f8068c88de497e77fc0bbca81a5234fa444d5
sha512=53d4ee5ad8c01e19a2e1fbda86266768d118f78566b82f0c736338ce2c12258185a5f4dbb90bf0da37a7528098266ec81861bdcfea29e55daa3122a4f3a1daca

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)