title: How to get OCaml toplevel to use Batteries?
body: <p>After reading the content on the OCaml web site, the Batteries web site, the OPAM web site, etc, I cannot figure out how to use this library. (It was even worse when I tried Core but I'll stick to batteries for now). Admittedly I'm new to OCaml's ecosystem, but I'm finding it more difficult to understand than Haskell's, than Python's, than Ubuntu's, or any other package-managed system.</p>
  
  <p>So, can someone please tell me how do I get Batteries and OCaml loaded properly so I can start writing code?</p>
  
  <p>I'm on a Mac, so I started here:</p>
  
  <pre><code>brew install opam # Install opam
  opam switch 4.01.0 # Install 4.01.0 version of Ocaml
  opam install batteries # Install batteries library
  
  eval `opam config env`
  ocaml # Run the toplevel
  open Batteries # Try to use batteries
  </code></pre>
  
  <p>I may have left some commands out, but I believe these are the main ones. At the <code>open</code> command, the toplevel tells me <code>Error: Unbound module Batteries</code>. </p>
  
  <p>Am I supposed to have to "link" libraries into the Ocaml interpreter because they are not loaded automatically? </p>
  
  <p>Finally, how do I arrive at a working setup that I can then use to learn Ocaml and Batteries?</p>