Notes: OCaml from the Very Beginning by John Whitington

Posted on October 2, 2018 by jcb


Preliminaries: Getting Ready

Since I’m running NixOS:

$ nix-env -iA nixos.ocaml
$ ocaml

This book seems mostly designed to be done from the REPL for the first parts. The default OCaml REPL is a little bare-bones (doesn’t even have arrow keys), so in Chapter 05: Sorting Things I wrote a default.nix to bring in utop, which is a nice wrapper that makes the REPL much more usable.