Resources

OCaml Language

Editors/IDE with OCaml support

Computer Labs

Visual Studio Code, Ocaml and Opam are already installed on the Linux workstations in the DIVMS Computer labs. You can log in the lab machines either

You can access Visual Studio Code from the Applications | Computer Science menu of the Linux desktop. Alternatively, you can open a terminal and run the command: code .
The OCaml toplevel is invoked with the command: ocaml .

You can install the OCaml and Reason IDE extension for Visual Studio Code locally in your account. That extension requires a local installation of merlin which you with Opam. Note that while Opam itself is already installed, you need to initialize it to create a local copy of OCaml (in the .opam folder of your home folder). To do that run the following commands in a terminal:

opam init
eval `opam env`
opam switch create 4.06.1
which ocaml

The last command is to verify that the initialization was successful. That is so if it return a path that ends with .opam/default/bin/ocaml .


Copyright: Cesare Tinelli, The University of Iowa, 2019