I've encountered the error Unbound module Sys_unix`. The code in utop is: I don't know why and I can't even find a documentation about module Sys_ ...
I've encountered the error Unbound module Sys_unix`. The code in utop is: I don't know why and I can't even find a documentation about module Sys_ ...
The following code that was compiling successfully with Core v0.14 (ocaml 4.10), but fails with v0.15 (ocaml 4.11). The error (with 4.11) : The ...
I was working on chapter 1 of Modern Compiler Implementation in ML by Andrew Appel and I decided to implement it in OCaml instead of SML. I'm new to O ...
I am migrating to a recent version of OCaml (and Jane Street's Core modules), but would like my code to continue to compile with older versions. To do ...
I'm having trouble linking a very simple OCaml program: which I compile with The compile step always generates the error: I've pinned version ...
I am currently testing out Facebook's Infer (open source) v0.17.0 and trying to build it from source code using the bash file by the command $> ./ ...
I'm trying to achieve this But it fails with Okay I find out. The problem was that googling for ocaml core list lead me to outdated docs. The la ...
I have this signature for a mutable set: I want to implement the signature with HashSet using the Hashable module from the Base library. I am ge ...
I'm trying to understand List.sum from Jane streets core. I got it to work on a simple list of integers, but don't understand the concepts of Core's c ...
How do you apply a List filter before a List map in OCaml? I'm trying the pipe operator but with no success: utop is giving me: "This expression h ...
Jane Street's Core_kernel library has two heap implementations based on pairing heaps: Module Core_kernel.Heap Heap implementation based on a pa ...
I have simple program, which uses function from Core.Std module, e.g.: I can compile and link it by ocamlfind or ocamlbuild: But I don't know ho ...
When I pass bytes variable to the method Shell.sh_one from Core_extended there is a strange error: What's interesting if I'll pass bytes literal, t ...
I'm doing a daily code challenge that allows for any language to be used. I've recently been working through Real-World OCaml. I'm really interested t ...
I have a module in OCaml that is parameterized by another module, which represents a data structure (H = Hashtable, M = Map, L = LossyMap). I would no ...
I'm learning OCaml with the textbook "Real World OCaml." I'm running into a continuous problem though: I can't seem to access Jane Street's OCaml stan ...
I was trying to unwrap the result of List.max_elt of a non-empty list, which should always exist, so I thought Option.value_exn would be the correct t ...
AFAIK, strings in OCaml are just plain sequences of bytes. They have no notion of encoding. This is fine for most purposes. However, some pieces of s ...
I'm a new OCaml-learner, and I'm trying to print some S-expressions, using Jane Street's Sexplib (included with Core): However, this doesn't seem t ...
I'm new to OCaml, and I it's often suggested that I use Jane Street's standard-library instead of the one that ships with the compiler. However, ther ...