-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I am currently using ts2ocaml to generate bindings to a fairly large TypeScript library. ts2ocaml produces an mli file approximately 8.2MB in size, which causes both ocamlopt and ocamlc to stack overflow at the default system stack limit on my Macbook Pro.
I am fairly certain this could be solved by generating separate interface files, since modules can't be recursively dependent anyway.
i.e. transform
src.mli:
module X : sig
...
end
module Y : sig
...
endinto
x.mli, y.mli withsrc.mli:
module X = X
module Y = YI recognize that this is a "nice-to-have" and probably doesn't represent a widespread need, but would be very helpful in making builds of my library easier!
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request