reasonml / reason-cli

Globally installable Reason toolchain.
MIT License
291 stars 23 forks source link

refmt removes necessary parenthesis #74

Closed vkammerer closed 6 years ago

vkammerer commented 6 years ago

I don't know where an issue with refmt should be filed, so I apologize in advance if it should be posted elsewhere.

I was reading through http://reasonmlhub.com/exploring-reasonml/ch_functions.html (the section "Compatibility of function types with labeled parameters"), and trying to reproduce the examples locally when I encountered what seems to be a bug with refmt's handling of parenthesis.

Steps to reproduce:

IwanKaramazow commented 6 years ago

Hi @vkammerer. If you have issues with refmt, you can file them at https://github.com/facebook/reason/issues. This is indeed a legit issue, I'll fix it.

vkammerer commented 6 years ago

Duplicate of https://github.com/facebook/reason/issues/1957