push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
{
lib,
fetchFromGitHub,
nix-update-script,
buildDunePackage,
base,
ppx_sexp_conv,
}:
buildDunePackage rec {
pname = "tdigest";
version = "2.2.1";
src = fetchFromGitHub {
owner = "SGrondin";
repo = pname;
rev = version;
sha256 = "sha256-faJ8ZQ7AWDHWfyQ2jq6+8TMe4G4NLjqHxYzLzt2LGh4=";
};
minimalOCamlVersion = "5.1";
# base v0.17 compatibility
patches = [ ./tdigest.patch ];
propagatedBuildInputs = [
base
ppx_sexp_conv
];
passthru.updateScript = nix-update-script { };
meta = with lib; {
homepage = "https://github.com/SGrondin/${pname}";
description = "OCaml implementation of the T-Digest algorithm";
license = licenses.mit;
maintainers = with maintainers; [ niols ];
};
}

View File

@@ -0,0 +1,17 @@
diff --git a/src/cmap.ml b/src/cmap.ml
index 69f447b..3afb2b6 100644
--- a/src/cmap.ml
+++ b/src/cmap.ml
@@ -173,6 +173,12 @@ end = struct
let of_list_with_key_multi list ~get_key =
Using_comparator.of_list_with_key_multi ~comparator list ~get_key
+ let of_list_with_key_fold list ~get_key ~init ~f =
+ failwith "Map.of_list_with_key_fold: not implemented yet"
+
+ let of_list_with_key_reduce list ~get_key ~f =
+ failwith "Map.of_list_with_key_reduce: not implemented yet"
+
let of_alist alist = Using_comparator.of_alist ~comparator alist
let of_alist_or_error alist = Using_comparator.of_alist_or_error ~comparator alist