3 ms·
I've never used Reason, but I find OCaml very easy to set up. This probably depends a lot on how well-supported your editor is. My setup involves: sudo a
by thedufer 7y ago
I've never used Reason, but I find OCaml very easy to set up. This probably depends a lot on how well-supported your editor is. My setup involves:
sudo apt-get install opam inotify-tools m4
opam init
opam switch 4.07.0
opam install dune merlin ocp-indent
and then add the ocaml layer to my spacemacs config. This gives me auto-indenting, syntax highlighting, type hinting, and my preferred build tool (dune w/ inotify).
FWIW, this was much worse when I did it a couple of years ago. I think the ecosystem has made pretty big strides recently, much of which came from standardizing on dune as the canonical build system.
- johnisgood 7y agoI typically install all what you listed, and tuareg. Worth noting that after installing these packages, they tell you how to configure your text editor, or you can choose to let them handle it for you automatically (IIRC). So yes, it is pretty easy to set OCaml up.
- thedufer 7y agoI believe the spacemacs ocaml layer pulls in tuareg automatically, but that's a good point for other setups.
- k__ 7y agoI have to admit, Reason is a bit more obscure. I installed bs-platform and still got errors from my IDE about bs-platform missing. Which was strange, since I used the bs-platform CLI tools. Turns out you also had to have bs-platform installed locally, but the error messages didn't say anything about this, just "bs-platform not found".