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

Remove extra space before return type declaration in function definition #1966

Merged
merged 2 commits into from
May 28, 2018

Conversation

anmonteiro
Copy link
Member

fixes #1628

(argsList@[formatJustTheTypeConstraint typeLayout], e)
([makeList
~break:IfNeed
~indent:(settings.space * settings.indentWrappedPatternArgs)
Copy link
Member

Choose a reason for hiding this comment

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

oh man, settings.space? Have we been using this consistently? cc @IwanKaramazow

Copy link
Member Author

Choose a reason for hiding this comment

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

I used the same setting that wrapCurriedFunctionBinding employs, given that's where it all trickled down before.

Copy link
Contributor

Choose a reason for hiding this comment

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

settings.space exists and the space setting is used only in function bindings I think. It's pretty obscure, since it defaults to the default 2 here.

@chenglou
Copy link
Member

Looks good. Thanks!

@chenglou chenglou merged commit 1a10d3c into reasonml:master May 28, 2018
anmonteiro added a commit to anmonteiro/reason that referenced this pull request May 28, 2018
This is a follow-up to reasonml#1966, this time removing the extra space before type
definitions for external declarations.
anmonteiro added a commit to anmonteiro/reason that referenced this pull request May 28, 2018
This is a follow-up to reasonml#1966, this time removing the extra space before type
definitions for external declarations.
chenglou pushed a commit that referenced this pull request May 28, 2018
* Remove extra space before external type definition

This is a follow-up to #1966, this time removing the extra space before type
definitions for external declarations.

* remove useless directive
@anmonteiro anmonteiro deleted the anmonteiro/gh-1628 branch May 29, 2018 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[refmt] Extra space before colon of return type on function definition
4 participants