Skip to content

Conversation

@Octachron
Copy link
Member

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 opens 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:

val add:  Int.( t -> t -> t)

#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))
Copy link
Member Author

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.

Copy link
Collaborator

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.

Copy link
Collaborator

@panglesd panglesd left a 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))
Copy link
Collaborator

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.

panglesd added a commit to Octachron/odoc that referenced this pull request Mar 26, 2024
Signed-off-by: Paul-Elliot <[email protected]>
Octachron and others added 3 commits March 26, 2024 15:50
- 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 <[email protected]>
@panglesd panglesd merged commit 0b1e129 into ocaml:master Mar 26, 2024
jonludlam added a commit to jonludlam/opam-repository that referenced this pull request Apr 29, 2024
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)
@Julow Julow mentioned this pull request May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants