Introduction to Reason Compilation
[CG]Nick
13.8K views
Open Source Your Knowledge, Become a Contributor
Technology knowledge has to be shared and made accessible for free. Join the movement.
2 - Compile Two Files, Where One Depends on Another
Now we're introducing a new, internal dependency. See the additions in run.sh
!
"Run"
1
2
3
/* Note that `myDep.re` becomes the module `MyDep`. In OCaml and Reason syntax, a module is upper-cased. */
print_endline MyDep.secret;
Enter to Rename, Shift+Enter to Preview
1
let secret = "hello";
Enter to Rename, Shift+Enter to Preview
1
cd step2
Enter to Rename, Shift+Enter to Preview
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content