Skip to content

OxCaml: Support for modalities#1420

Open
art-w wants to merge 6 commits into
ocaml:masterfrom
art-w:oxcaml-modalities
Open

OxCaml: Support for modalities#1420
art-w wants to merge 6 commits into
ocaml:masterfrom
art-w:oxcaml-modalities

Conversation

@art-w
Copy link
Copy Markdown
Collaborator

@art-w art-w commented Apr 17, 2026

Builds on top of #1410, only the last two commits are new (one commit to test, one to fix)

This PR adds support for OxCaml modalities, fixes #1416

Comment thread src/document/generator.ml

val format_modalities : Odoc_model.Lang.Modalities.t -> text
end = struct
let format_modalities modalities =
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned in https://github.com/ocaml/odoc/pull/1410/changes/BASE..d0a2d4e0dc3abd4bccec3cb8ac8da0e87da8c6fe#r3131327149, the display of modalities in kind_annotation should use this function!

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.

Support OxCaml modalities

2 participants