I use two open module methods in OCaml:
- let module M = SomeModule in code
I can make a short name of a module, and use it in the expressions later. - SomeModule.(code)
This is really a shortcut in OCaml, it will open module in the scope.
But in ReScript, I only find one way to open module, it is:
open SomeModule
It works, but I must type the whole name of module, is there a way to open module in the OCaml way? I remember reasonml support the second way, I didn’t know how to write it in ReScript.