You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, the classes have a cyclic dependencies, which when tried to generated bindings for, dune complains
Example:
let data_structures =
["Error"; "Layer"; "Timeline";]
Dependency cycle between the following files:
_build/default/lib/.GES.objs/Layer.mli.all-deps
--> _build/default/lib/.GES.objs/Timeline.mli.all-deps
--> _build/default/lib/.GES.objs/Layer.mli.all-deps
Are there any best-practices on how to handle cyclic dependencies in OCaml bindings? I know that bs-webapi - BuckleScript (Reason/Ocaml) bindings to DOM API simply put all typedefs into one separate "Types" module... (in bs-webapi specifically it is named "Dom" and ships together with BS compiler, but you get the point...)
Is there any significant disadvantage in this approach?
Sometimes, the classes have a cyclic dependencies, which when tried to generated bindings for, dune complains
Example:
Full gen.ml
The text was updated successfully, but these errors were encountered: