这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@dvulakh
Copy link

@dvulakh dvulakh commented Jul 30, 2025

Currently, modes on modules in structure-item and expression positions are ignored by the ocamlformat printer (because full compiler support was added a while after the parsing).

e.g. when given:

module M @ nonportable = M

ocamlformat produces:

module M = M

Now that the compiler supports modes in these positions, we need to make sure ocamlformat handles them correctly.

dvulakh added 3 commits July 30, 2025 14:38
Signed-off-by: David Vulakh <dvulakh@janestreet.com>
Signed-off-by: David Vulakh <dvulakh@janestreet.com>
Signed-off-by: David Vulakh <dvulakh@janestreet.com>
@dvulakh dvulakh requested a review from riaqn July 30, 2025 20:03
Signed-off-by: David Vulakh <dvulakh@janestreet.com>
@dvulakh dvulakh requested a review from riaqn July 31, 2025 13:13
@dvulakh dvulakh merged commit 31e4782 into jane Jul 31, 2025
2 checks passed
@dvulakh dvulakh deleted the dvulakh.mode-on-module branch July 31, 2025 15:18
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.

3 participants