git clone 'git://github.com/flycheck/flycheck-ocaml.git'
Add OCaml support to Flycheck:
ocaml-merlin syntax checker using Merlin
As usual, from MELPA or MELPA Stable.
;; Disable Merlin's own error checking
(setq merlin-error-after-save nil)
;; Enable Flycheck checker
(add-hook 'tuareg-mode-hook #'merlin-mode)
Just use Flycheck as usual in Tuareg Mode buffers. Flycheck will automatically
use the new
ocaml-merlin syntax checker if Merlin Mode is enabled and Merlin's
own error checking (
merlin-error-after-save) is disabled.
If you enable Merlin's error checking with
Flycheck will not use the
ocaml-merlin syntax checker anymore, to avoid
duplicate and redundant error reporting.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
COPYING for details.