If I’m programming in the OCaml toploop and I want to use a package from the OCaml standard library or some other library, how I can find out which .cma file to load? In the standard library for example, String is in str.cma and Big_int is in nums.cma, so the filenames are not discernible from the module name or description.
Is there an easy way to look up the correct file for a module?
As Po’ Lazarus suggested, I used
ocamlobjinfoto construct a mapping between the.cmafiles and the modules defined for easy reference.bigarray.cma:dbm.cma:dynlink.cma:graphics.cma:nums.cma:stdlib.cmastr.cma:toplevellib.cma:unix.cma: