OCaml noob here! I’m trying to use the “Batteries” module, but… it doesnt work!
Here is an example:
open Batteries;; print_endline (dump [5;4;2]);;
I’m compiling with:
opam exec ocamlc main.ml the error message is:
File "main.ml", line 1, characters 5-14: 1 | open Batteries;; ^^^^^^^^^ Error: Unbound module Batteries
and the Batteries module seems installed:
$ opam install Batteries [NOTE] Package batteries is already installed (current version is 3.0.0).
What am I missing?
Btw, do we need the
;; at the end of the
open statement? I’ve found both syntax, what is the recommended one?