The library more
may be installed with:
opam install more-ocaml
- Launch the
utop
wrapper at:./manage/dev/utop
It auto-reloads on file changes
- Launch this background worker:
foreman start -f Procfile.dev
It kills the child REPL on file changes (file must be tracked by git).
- To kill the
utop
wrapper, run:kill $(cat .utop.ppid)
And maybe reset
if the terminal happens to be wonky.
An alternative could be to combine steps 2 and 3 in one go, like this:
# Run first, pane 2
./manage/dev/utop ; reset
# Run second, pane 1
foreman start -f Procfile.dev ; kill $(cat .utop.ppid)
Run the inline tests, as such:
dune runtest -w