Is there any way to extract all the type definitions from a bunch of OCaml files? I can always cut and paste them into a separate editor tab, where it's easy to stare at them in a way that fits as much information on the screen at possible. However, this is a chore and I'd prefer to make it automated.
To make it precise, Emacs and tuareg mode already shows me the types of all the functions, but what I'd also want is to be able to collect a nice cheat sheet of what each type actually is. For modules, there's obviously the mli-file, but for everything else collecting them into one place to quickly get an overview of a bunch of code is annoying.