Copy dune-project and adjust names as desired
dune build at top level (generates {name}.opam)
opam install . --deps-only at top level (installs core dependency)
Subsequently, on terminal start run eval $(opam env) to bring installs into scope
For each day:
- create folder
dayX - copy
dunefile with entrypoint - make
{entrypoint}.mlindayXfolder dune buildindayXfolder- start developing in
{entrypoint}.ml(hints will work in VSCode if you've installed the OCaml extension) - run program with
ocaml {entrypoint}.ml- NOTE: If using
strlibrary, need to explicitly link it by usingocaml str.cma {entrypoint}.ml
- NOTE: If using