ocamlformat icon indicating copy to clipboard operation
ocamlformat copied to clipboard

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

Open gpetiot opened this issue 3 years ago • 0 comments

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 avatar Aug 03 '22 19:08 gpetiot