From: "Török Edwin" <edwin+ml-ocaml@etorok.net>
To: caml-list@inria.fr
Subject: Re: [Caml-list] OCaml linting
Date: Sat, 17 Nov 2012 10:35:48 +0200 [thread overview]
Message-ID: <50A74C64.5010703@etorok.net> (raw)
In-Reply-To: <50A6EBAD.8050204@gmail.com>
On 11/17/2012 03:43 AM, Edgar Friendly wrote:
> I'm playing with Sublime Text 2, and find it has an interesting plugin to do active linting of a program under development. What's the set of compiler options that will produce warnings/errors the
> quickest, for using ocamlc to quickly check for syntax and maybe even type errors in a partial program?
For syntax: camlp4o(.opt), for type errors: build a .cmi file (or .inferred.mli?)
> Does anyone already have a process for this under emacs, using auto-recompile or other plugins?
I don't use emacs, but under Vim you can use the syntastic plugin for syntax checks on file save (via camlp4o).
Or to get type errors set this: let g:syntastic_ocaml_use_ocamlbuild = 1
Best regards,
--Edwin
next prev parent reply other threads:[~2012-11-17 8:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-17 1:43 Edgar Friendly
2012-11-17 2:05 ` Wojciech Meyer
2012-11-17 8:35 ` Török Edwin [this message]
2012-11-23 17:30 ` Philippe Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50A74C64.5010703@etorok.net \
--to=edwin+ml-ocaml@etorok.net \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox