Skip to content

Conversation

Julow
Copy link
Collaborator

@Julow Julow commented Mar 12, 2021

This only fixes the most annoying case: match clauses.
Ocp-indent doesn't offer enough options to fix this problem entirely (and that's fine because we shouldn't think about formatting now because of OCamlformat).
A lot of things are still not right: indentation inside a (fun ...), long type constraints on let, etc..

Julow added 2 commits March 12, 2021 11:31
This only fixes the most annoying case: match clauses.
Ocp-indent doesn't offer enough options to fix this problem entirely.
Comment on lines 2 to 3
align_ops = false
align_params = never
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are unecessary because if they are ever useful (eg. breaking the line inside an expression), OCamlformat will reformat the whole thing differently anyway.

# Auto-format the whole project using OCamlformat
75efc08df487fa1a89fb86e446aadc8f6273b5bb
# ocamlformat 0.17.0
b0c03d1b76f7da7d88d40bbc5029accfa9228112
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feature of Git doesn't work well in my experience but it doesn't cost much to record these anyway.

@Julow Julow mentioned this pull request Mar 12, 2021
@jonludlam jonludlam merged commit 3f59325 into ocaml:master Mar 12, 2021
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