Skip to content

Conversation

@Julow
Copy link
Collaborator

@Julow Julow commented Nov 21, 2025

Fix #2646

Support the unnamed functor parameters in module types:

module type F = ARG -> S

The extended parser is changed to preserve the concrete syntax of functor arguments in module types. Notably, these three lines are no longer equivalent and the first two are no longer turned into the third:

module M : (_ : S) -> (_ : S) -> S = N
module M : S -> S -> S = N
module M : (_ : S) (_ : S) -> S = N

Support the unnamed functor parameters in module types:

    module type F = ARG -> S

The extended parser is changed to preserve the concrete syntax of
functor arguments in module types. Notably, these three lines are no
longer equivalent and the first two are no longer turned into the third:

    module M : (_ : S) -> (_ : S) -> S = N
    module M : S -> S -> S = N
    module M : (_ : S) (_ : S) -> S = N
Restore the previous formatting.
@Julow
Copy link
Collaborator Author

Julow commented Nov 25, 2025

No regressions in test-branch, let's merge !

@Julow Julow merged commit 25d912f into ocaml-ppx:main Nov 25, 2025
11 of 12 checks passed
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.

Bug: Incorrectly added any-pattern into signature of functor

1 participant