reasonml / reason

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
http://reasonml.github.io
MIT License
10.08k stars 425 forks source link

Open module from another directory #2736

Closed vadakoff closed 3 months ago

vadakoff commented 3 months ago

Hello guys!

If i have project structure something like:

/<project>/
    ./src/
        ./Main.re
        ./Examples/
            ./Greeting.re

How can i open module, something like this:

open Examples__Greeting;
davesnx commented 3 months ago

Depending on your dune setup, but open Greeting would be the way.

I will close this since there's no issue, keep asking any question if you have any.