chenglou / intro-to-reason-compilation

Ready up!
271 stars 19 forks source link

Idea for simple ReasonML compilation (-re switch to ocaml commands) #13

Closed Siltaar closed 5 years ago

Siltaar commented 5 years ago

Hi,

I would have love to be able to add a simple --reasonml switch to all the OCaml compiling tool family and get my .re / .rei compiled. It would help people to come to Reason from OCaml books and tutorials.

My personal religion is : "do not install something out of apt install", the command line switch I speak would already be packaged in all major GNU+Linux distributions by now, reaching a broader audience, and even regular people not interested in React (yet).

For instance it was already a struggle to install rtop on Debian : https://www.grimoire-command.es/2019/rtop_on_debian_stretch.html And I know I wont be able to go further without a nodeenv (or an equivalent) which is a step never shown on tutorials.

Implementing this switch would also show some upstream contributed code, an example of "we're really nice".

Siltaar commented 5 years ago

An answer have been given in ReasonML.chat : https://reasonml.chat/t/naive-wish-for-simple-reasonml-compilation-and-promotion-re-switch-to-ocaml-commands/1946/3

dune easily allows to compile Reason only from OPAM packages: https://til.hashrocket.com/posts/qljaabp1yb-compile-reasonml-to-native-with-dune