-
Notifications
You must be signed in to change notification settings - Fork 100
Basic support for OCaml 5.2.0 #1094
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
Conversation
#if OCAML_VERSION >= (4,8,0) | ||
#if OCAML_VERSION >= (5,2,0) | ||
(let paths = Load_path.get_paths () in | ||
List.filter (fun s -> s <> "") (paths.visible @ paths.hidden)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the conservative version, it is possible that keeping just paths.visible
would be better for odoc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently, those function are only used in an old .md
test, so anything is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the PR!
#if OCAML_VERSION >= (4,8,0) | ||
#if OCAML_VERSION >= (5,2,0) | ||
(let paths = Load_path.get_paths () in | ||
List.filter (fun s -> s <> "") (paths.visible @ paths.hidden)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently, those function are only used in an old .md
test, so anything is fine.
Signed-off-by: Paul-Elliot <peada@free.fr>
- Typedtree changes - Shape request API changes - Shape uid map changes - Basic support for open in types - Unit_info changes for typemod
Signed-off-by: Paul-Elliot <peada@free.fr>
CHANGES: ### Added - OCaml 5.2.0 compatibility (@Octachron, ocaml/odoc#1094, ocaml/odoc#1112) ### Fixed - Fix issues ocaml/odoc#1066 and ocaml/odoc#1095 with extended opens (@jonludlam, ocaml/odoc#1082, ocaml/odoc#1100)
This PR makes the minimal changes for supporting OCaml 5.2, without taking advantages of any of the new shape features in OCaml 5.2.0 .
Another aspect that should probably be improved later on is the support for
open
s in type expressions: the present PR is only traversing the open while it could be useful to keep track of those when generating the documentation: