base
base copied to clipboard
Standard library for OCaml
This is so we can use `--profile=release` on older OCaml versions that are producing warnings.
5.0 support
Alternate to #129 with DCO signed commits as the interim 5.0-only commit is removed - and on the v0.15 branch
The present PR suggests adding the following two values to `Base.Monad.S`: ```ocaml val fold_list : f:('a -> 'b -> 'a t) -> init:'a -> 'b list -> 'a t val...
same as https://github.com/janestreet/base/pull/127 but for v0.15 instead of v0.14
Backport of #131 to 0.14 Map and Set use some exceptions for control flow that were being raised with plain `raise`. This meant that stack traces were being created for...
``` #=== ERROR while compiling base.v0.14.3 =======================================# # context 2.2.0~alpha~dev | linux/x86_64 | ocaml-variants.5.00.0+trunk | file:///home/opam/opam-repository # path ~/.opam/5.00/.opam-switch/build/base.v0.14.3 # command ~/.opam/opam-init/hooks/sandbox.sh build dune build -p base -j 31 #...
I'm trying to find out why [capnp master's tests](https://ci.ocamllabs.io/github/capnproto/capnp-ocaml/commit/4aaf51db3fa24c363785c9a7cf4d096ceb55d09c) don't work on OCaml 4.07, and the ```Required module `Bigarray' is unavailable``` error seems to be connected to `Base_quickcheck`. I thought...
Are there plans to add support for monadic syntax (`let*` and friends) to Base? I'm imagining that the `Let_syntax` modules could just add the `let*` alias.
As with `Option.map` vs `Option.value_map`, it'd be useful (albeit rarely!) to have a `value_merge` function: ``` let value_merge a b ~default ~f = match a, b with | None, None...