Closed kindaro closed 2 years ago
Note: it wouldn't require an option if merged into Ormolu. It would be automatically applied, similar to how ImportQualifiedPost
is automatically handled
Seems to be not a very good idea if we keep in mind that the goal of a formatter is consistent appearance of the code. Some modules might end up using UnicodeSyntax
and some not.
Couldnt you say the same thing about ImportQualifiedPost today? If someone turns it on for some modules and not others, it'll format qualified imports differently.
I could, I wish that feature did not exist. Frankly, it doesn't solve any real practical issue and just complicates everything for a questionable cosmetic benefit.
I think the difference is that normalizing imports is a bit more troublesome (need to edit the AST and remove a pragma), so a compromise was introduced there.
I wanted to add an option to write Unicode syntax to
fourmolu
and a maintainer there suggested I check with the maintainers oformolu
if this can be merged here instead. So here I am. Would you merge that pull request?