Write OCaml through the Reason prism. Write ReasonML through the OCaml prism.
_ _
/ | \
OCaml ~~~> / | \ ~~~> ReasonML
ReasonML <~~~ /___|___\ <~~~ OCaml
Write ReasonML through the OCaml prism.
Write OCaml through the ReasonML prism.
PrisML is a VSCode extension for OCaml and ReasonML developers. It gives you the ability to work on both syntax using only the one you’re familiar with.
PrisML is just a layer over refmt, developped by the authors of facebook/reason.
This project is a work in progress. Reading and writing using Reason syntax seems to work fine though.
To take a look at the extension:
yarn
You should see the chosen folder in VSCode explorer. The OCaml files should be seen with _ml.re
extension instead of .ml
. When you open them, you should see Reason syntax instead of OCaml.