Typemod.modtype_of_package should be exported so that it is usable via compiler-libs #6842
Original bug ID: 6842
I found that there is no function exported to convert a packaged module type to a normal module type. Namely, modtype_of_package. I thought it is trivial work but looking ad the code of it and package_constraints, it seems more complex.
Without it, it is hard to write OCaml tools which handle packaged module types. It would be nice if it is exported to typemod.mli and available in compiler-libs.