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,44 @@
{
lib,
buildDunePackage,
fetchFromGitHub,
m4,
camlp-streams,
core_kernel,
ounit,
}:
buildDunePackage rec {
pname = "cfstream";
version = "1.3.2";
minimalOCamlVersion = "4.08";
src = fetchFromGitHub {
owner = "biocaml";
repo = pname;
rev = version;
hash = "sha256-iSg0QsTcU0MT/Cletl+hW6bKyH0jkp7Jixqu8H59UmQ=";
};
patches = [
./git_commit.patch
./janestreet-0.17.patch
];
nativeBuildInputs = [ m4 ];
checkInputs = [ ounit ];
propagatedBuildInputs = [
camlp-streams
core_kernel
];
doCheck = true;
meta = with lib; {
inherit (src.meta) homepage;
description = "Simple Core-inspired wrapper for standard library Stream module";
maintainers = [ maintainers.bcdarwin ];
license = licenses.lgpl21;
};
}

View File

@@ -0,0 +1,13 @@
diff --git a/lib/dune b/lib/dune
index 2266b87..344c704 100644
--- a/lib/dune
+++ b/lib/dune
@@ -8,7 +8,7 @@
(rule
(targets GIT_COMMIT)
(deps (:x ../bin/git_commit.sh))
- (action (with-stdout-to %{targets} (run %{x})))
+ (action (with-stdout-to %{targets} (run echo None)))
)
(rule

View File

@@ -0,0 +1,58 @@
diff --git a/app/cfstream_test.ml b/app/cfstream_test.ml
index 457c5e5..c6a01a5 100644
--- a/app/cfstream_test.ml
+++ b/app/cfstream_test.ml
@@ -73,7 +73,7 @@ let test_uncombine () =
let test_partition () =
let f x = x mod 2 = 0 in
let l = List.init 100 ~f:(fun _ -> Random.int 10) in
- let r1 = Caml.List.partition f l in
+ let r1 = Stdlib.List.partition f l in
let r2 = of_list l |> partition ~f |> fun (a, b) -> to_list a, to_list b in
assert_equal
~printer:int_list_tuple_printer
diff --git a/lib/CFStream_stream.ml b/lib/CFStream_stream.ml
index 25c0e5a..835791c 100644
--- a/lib/CFStream_stream.ml
+++ b/lib/CFStream_stream.ml
@@ -83,7 +83,7 @@ let find xs ~f = find_map xs ~f:(fun x -> if f x then Some x else None)
let find_exn xs ~f =
match find xs ~f with
| Some x -> x
- | None -> raise Caml.Not_found
+ | None -> raise Stdlib.Not_found
;;
let exists xs ~f =
@@ -287,7 +287,7 @@ let group_aux xs map eq =
;;
let group xs ~f = group_aux xs f Poly.( = )
-let group_by xs ~eq = group_aux xs ident eq
+let group_by xs ~eq = group_aux xs Fn.id eq
let chunk2 xs =
from (fun _ ->
@@ -615,11 +615,11 @@ let to_hashtbl xs =
let of_map t = of_list (Map.to_alist t)
let to_map xs =
- fold xs ~init:Map.Poly.empty ~f:(fun accu (key, data) -> Map.Poly.set accu ~key ~data)
+ fold xs ~init:Map.Poly.empty ~f:(fun accu (key, data) -> Map.set accu ~key ~data)
;;
let of_set t = of_list (Set.to_list t)
-let to_set xs = fold xs ~init:Set.Poly.empty ~f:(fun accu e -> Set.Poly.add accu e)
+let to_set xs = fold xs ~init:Set.Poly.empty ~f:(fun accu e -> Set.add accu e)
module Infix = struct
let ( -- ) x y = range x ~until:y
@@ -660,7 +660,7 @@ module Result = struct
| M.E e -> Result.Error e
;;
- let all xs ~f = all_gen ident xs ~f
+ let all xs ~f = all_gen Fn.id xs ~f
let all' xs ~f = all_gen (fun x -> Ok x) xs ~f
let to_exn = result_to_exn