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
The links are set up correctly, it's just that doc-ock fails to expand the S with type elt = Ord.t part because it's naively looking for a type elt declaration in S while elt in this case actually comes from the include Set.S.
I applied a semi-fix: instead of failing in the case previously described expansion will now behave as if everything was fine. So we now have an expansion for Make in the example linked, and the links are not broken anymore.
A proper fix is to modify expansion to handle includes properly, so that in the expansion of Make (and not of S) replace include Set.S by include Set.S with type elt = Ord.t and type t = Set.Make(Ord).t and that in the expansion of the include it replaces type elt by type elt = Ord.t, etc.
This is however more involved and not strictly necessary for a first/beta release, also I expect it will be easier to do when we rewrite the expansion pass. So I'm leaving this issue open but removing the important label.
Activity
dbuenzli commentedon Sep 19, 2016
This was generated as follows (
opkg cache clear asetmap; opkg odoc asetmap -v -v) :[-]Functor arguments seem broken in some cases. [/-][+]Substitution doesn't handle includes[/+]trefis commentedon Dec 16, 2016
The links are set up correctly, it's just that doc-ock fails to expand the
S with type elt = Ord.tpart because it's naively looking for atype eltdeclaration inSwhileeltin this case actually comes from theinclude Set.S.map_type, map_module: do not raise when the element to be substitued …
trefis commentedon Dec 16, 2016
I applied a semi-fix: instead of failing in the case previously described expansion will now behave as if everything was fine. So we now have an expansion for
Makein the example linked, and the links are not broken anymore.A proper fix is to modify expansion to handle includes properly, so that in the expansion of
Make(and not ofS) replaceinclude Set.Sbyinclude Set.S with type elt = Ord.t and type t = Set.Make(Ord).tand that in the expansion of the include it replacestype eltbytype elt = Ord.t, etc.This is however more involved and not strictly necessary for a first/beta release, also I expect it will be easier to do when we rewrite the expansion pass. So I'm leaving this issue open but removing the important label.
dbuenzli commentedon Feb 28, 2021
I'm not sure exactly what was the problem but I suspect this is fixed. At least I can click on
Ordhere:https://b0-system.github.io/odig/doc/asetmap/Asetmap/Set/index.html
map_type, map_module: do not raise when the element to be substitued …
Print source information in implementations (ocaml#13)
Print source information in implementations (ocaml#13)
Revert "Print source information in implementations (ocaml#13)"
Print source information in implementations (ocaml#13)
Print source information in implementations (#13)