Skip to content

Improve formatting of tuples#2

Merged
panglesd merged 1 commit intopanglesd:format-long-signature-with-formatfrom
Julow:782_tuple
Nov 24, 2021
Merged

Improve formatting of tuples#2
panglesd merged 1 commit intopanglesd:format-long-signature-with-formatfrom
Julow:782_tuple

Conversation

@Julow
Copy link
Copy Markdown
Collaborator

@Julow Julow commented Nov 24, 2021

Before:

val partition3_map : 
  'a t ->
  f:( 'a -> [ `Fst of 'b | `Snd of 'c | `Trd of 'd ] ) ->
  'b t
  * 'c t
  * 'd t

val y : 
  y:
    ('fooooooooooooooooooooooo
      * 'baaaaaaaaaaaaaaaaaaaaaar
      * 'baaaaaaaaaaaaaaaaaaaaaaz) ->
  unit

After:

val partition3_map : 
  'a t ->
  f:( 'a -> [ `Fst of 'b | `Snd of 'c | `Trd of 'd ] ) ->
  'b t * 'c t * 'd t

val y : 
  y:
    ('fooooooooooooooooooooooo
     * 'baaaaaaaaaaaaaaaaaaaaaar
     * 'baaaaaaaaaaaaaaaaaaaaaaz) ->
  unit

@Julow
Copy link
Copy Markdown
Collaborator Author

Julow commented Nov 24, 2021

Btw, the tests are not uptodate: dune runtest --auto-promote.

@panglesd
Copy link
Copy Markdown
Owner

Thanks for the patch!

@panglesd panglesd merged commit 59707c1 into panglesd:format-long-signature-with-format Nov 24, 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