Execute ocaml and reason binaries on windows through WSL (Windows Subsystem for Linux).
At least in my very limited experience, ocaml has a very poor support for windows. Now that we have WSL, we can install it there, but it won't interop well with editors and other apps that won't "see" the binaries installed there.
The ideia of this project is to create some simple batch files that call bash -c <ocaml-binary> <parameters>
that editors and other programs can call to access the ocaml binaries installed on WSL.
First, install and configure these pre-requisites:
After that, just run this and follow the instructions (it may take some time to install the ocaml toolchain):
npm install -g ocaml-reason-wsl
To check if everything went well, open cmd.exe and run:
ocaml -version
It should print something like that:
The OCaml toplevel, version 4.02.3