Skip to content
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

Ocamldoc does not keep ".mli" names of polymorphic types #5294

Closed
vicuna opened this issue Jun 17, 2011 · 1 comment
Closed

Ocamldoc does not keep ".mli" names of polymorphic types #5294

vicuna opened this issue Jun 17, 2011 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Jun 17, 2011

Original bug ID: 5294
Reporter: v_monfort
Assigned to: @zoggy
Status: closed (set by @damiendoligez on 2012-09-20T14:25:42Z)
Resolution: fixed
Priority: normal
Severity: minor
Target version: 4.00.1+dev
Category: ocamldoc
Related to: #5067

Bug description

I used particular names for some polymorphic types in my .mli files but these
names were replaced with default names by ocamldoc in the documentation.
E.g.:
.mli:
type ('dom,'tf) manager = {
bot : 'dom;
...
}

.html:
type ('a, 'b) manager = {
bot : 'a;
...
}

I think it would be a good thing to could keep the name information because it makes the documentation more readable. Moreover the documentation text explaining theses types does not correspond anymore in html documentation (explaining 'dom type instead of 'a type).

Additional information

This could be related to issue #5067

@vicuna
Copy link
Author

vicuna commented Sep 20, 2012

Comment author: @damiendoligez

This is fixed in 4.00.0 because the typechecker now keeps the user-provided names of type variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant