News for hackers. Stuff that matters.
Re:TypeScript vs. ReasonML by thedufer on Wednesday September 04, 2019 @10:01AM (#20877276)
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.

Re:TypeScript vs. ReasonML by k__ on Wednesday September 04, 2019 @11:21AM (#20877999)
I 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".

Re:TypeScript vs. ReasonML by sikan on Wednesday September 04, 2019 @01:19PM (#20879327)
This shouldn't happen, did you make sure to yarn install and restart the reason language server?
Re:TypeScript vs. ReasonML by k__ on Wednesday September 04, 2019 @02:20PM (#20879965)
Maybe that was my problem, many project setup tools do the install automatically, you just need to cd and npm start.
Re:TypeScript vs. ReasonML by johnisgood on Wednesday September 04, 2019 @11:07AM (#20877855)
I 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.
Re:TypeScript vs. ReasonML by thedufer on Thursday September 05, 2019 @07:56AM (#20885772)
I believe the spacemacs ocaml layer pulls in tuareg automatically, but that's a good point for other setups.