Skip to content
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

Preserve syntax of module unpack with type constraint ('((module X) : (module Y))' vs '(module X : Y)') #2136

Merged
merged 1 commit into from
Aug 23, 2022

Conversation

gpetiot
Copy link
Collaborator

@gpetiot gpetiot commented Aug 3, 2022

Extracted from ocamlformat-ng's concrete AST, replacing the convoluted pattern Ppat_constraint(Ppat_unpack x, Ptyp_package y) with Ppat_unpack(x, Some y)

Preserving this syntax (and not removing/adding keywords) makes the formatting of comments easier.

@gpetiot gpetiot added the no changelog set this to bypass the CI check for changelog entries label Aug 3, 2022
@gpetiot gpetiot changed the title Simplify the AST representation of Ppat_unpack patterns with type constraint Preserve syntax of module unpack with type constraint ('((module X) : (module Y))' vs '(module X : Y)') Aug 4, 2022
@gpetiot gpetiot removed the no changelog set this to bypass the CI check for changelog entries label Aug 4, 2022
@gpetiot gpetiot requested a review from Julow August 4, 2022 10:24
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