Skip to content

Workarounds to use ocaml and reason on windows through WSL

License

Notifications You must be signed in to change notification settings

fhelwanger/ocaml-reason-wsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ocaml-reason-wsl

Execute ocaml and reason binaries on windows through WSL (Windows Subsystem for Linux).

What?

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.

Install

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

About

Workarounds to use ocaml and reason on windows through WSL

Resources

License

Stars

Watchers

Forks

Packages

No packages published