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.
5 - Preparation for Third-Party Dependencies
In preparation for the next step (third-party dependencies!), it'd be nice to have a unified folder for the built artifacts, so that we:
- don't pollute third-party with intermediate compilation artifacts alongside their source code
- can easily remove all artifacts by deleting a single folder
Additionally, we'll expand the naive compilation in run.sh
into something slightly more sophisticated, and make the corresponding changes in .merlin
.
"Run"
1
2
3
4
print_endline MyDep.secret;
print_endline MyDep2.secret;
Enter to Rename, Shift+Enter to Preview
1
let secret = "hello";
Enter to Rename, Shift+Enter to Preview
1
let secret = MyDep.secret ^ " world";
Enter to Rename, Shift+Enter to Preview
1
cd step5
Enter to Rename, Shift+Enter to Preview
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content