This plugin for Sublime Text 3 allows you to analyse OCaml source code, autocomplete and infer types while writing. It checks automatically for syntax or type errors.
First of all, be sure to have merlin installed. The current supported version of merlin is 2.x. The shorter way of doing this is with opam, an OCaml package manager:
opam install merlin
Next, install the ‘Merlin’ package using Package Control or clone this repository in your Packages folder:
git clone https://github.com/cynddl/sublime-text-merlin.git Merlin
Sublime-Text-Merlin is licensed under the MIT License. See the file LICENSE.md for more details.