I am new to OCaml and am trying to “import” an OPAM package I installed.
I am not sure how this is done.
I have a few lines of code in my ~/.ocamlinit which I am assuming allow me to run the following code:
This works perfectly on the REPL but I am not able to make it run as a project.
I have a project set up using:
- VSCode WSL on Ubuntu 20.04 on Windows 10
- dune set up
When I run a simple hello world code, this set up is working fine.
However when i use the code I used in REPL (given above) I get an error on the “#”
I am really confused as to how do I use this library in my project?