Tool for generating/running ocamlinit from merlin files?

I’m studying the tezos code, which uses a Makefile-based build system. I’d like to be able to open a toplevel with the necessary context (package loads, search directories, etc.) to experiment with its modules and functions. It does provide .merlin files, which I can use to create an .ocamlinit file, but I was wondering whether there’s a tool for doing that, or even one which you can run in your .ocamlinit to automatically set the context for your toplevel.

1 Like