ocaml-ppx / ocamlformat

Auto-formatter for OCaml code
MIT License
633 stars 179 forks source link

Feature request: Experimental effect syntax support? #2559

Open Zeta611 opened 5 months ago

Zeta611 commented 5 months ago

I'm currently using 5.1.1+effect-syntax variant, and ocamlformat (obviously) fails to work.

Describe the solution you'd like I have actually implemented a rudimentary support for the syntax here for personal use.

But I'm not sure whether or not or how I should contribute, as this is an experimental syntax support.

Additional context It works:

Screenshot 2024-06-22 at 18 14 27
Julow commented 4 months ago

This is awesome ! I think you can definitely open a PR as the effect syntax is to be released in OCaml 5.3 (I think?)

Zeta611 commented 4 months ago

Great, I've opened it in #2562!