-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type extensions are no anchorable and should be classified as type
#601
Comments
hmm, if we want to have several "kinds", we should make this a |
As choice of anchor, I suggest we use the data constructors that are being added, either a complete concatenation, or just the first one. |
That seems a good idea. Something like
Yes that's the reason why I opened an issue rather than doing it directly. That being said I'm not super happy with the markup classification in general in the content of Unless you want to go wild, it's likely that for most kind of type definitions the styling rules are the same. That is the classification on Also using Finally cut and paste is broken if you document your cases/record fields. I'm not exactly sure what the best course of actions is here. The easiest is to put the doc string in a comment like |
Oddly enough it seems that CSS's https://b0-system.github.io/odig/doc/biniou/Bi_inbuf/index.html Results in a perfect c&p in Firefox and with one blank line added for documented fields in Chrome (but that's ok, the c&p remains valid OCaml syntax). |
Doesn't that prevent people to c/c the documentation ? |
Yes it's a trade-off. I argue that most of the time you are interested in c&p the defs because you want to construct (record)/deconstruct (variant) the value. In that case having the documentation crap coming along without the Another option would be to add the |
Also this can be slightly mitigated by reinstating c&p on |
We simply use the `attr` pattern already present in the IR model. This also slightly tweaks some of the "kinds": * `extension` becomes `type extension` * `type-subst` becomes `type subst` * `external` becomes `value external` * `instance-variable` becomes `value instance-variable` Fixes part of ocaml#601.
We simply use the `attr` pattern already present in the IR model. This also slightly tweaks some of the "kinds": * `extension` becomes `type extension` * `type-subst` becomes `type subst` * `external` becomes `value external` * `instance-variable` becomes `value instance-variable` Fixes part of ocaml#601.
We simply use the `attr` pattern already present in the IR model. This also slightly tweaks some of the "kinds": * `extension` becomes `type extension` * `type-subst` becomes `type subst` * `external` becomes `value external` * `instance-variable` becomes `value instance-variable` Fixes part of ocaml#601.
We simply use the `attr` pattern already present in the IR model. This also slightly tweaks some of the "kinds": * `extension` becomes `type extension` * `type-subst` becomes `type subst` * `external` becomes `value external` * `instance-variable` becomes `value instance-variable` Fixes part of #601.
An anchor have been added in the generated html (#684) but it's still not possible to write a reference to them yet. I think references to type extensions should only mention the target type (eg. |
The individual cases are anchorable but the toplevel
type t +=
isn't which is annoying when you want refer to the extension, not a particular case. I guess something must be solved to generate uniqueid
s in that case.Also it would be nice to classify them as
spec type extension
ratherspec extension
Since most of the rendering is going to be shared withspec type
, this simplifies stylesheets. It seems to stem from this line but I'm a bit usure what will happen for generators if we replace that"extension"
with"type extension"
(e.g. here in the HTML generator). @Drup knows maybe ?The text was updated successfully, but these errors were encountered: