ormolu
ormolu copied to clipboard
Multiline associative operator usage looks strange
For example parsers:
parser = Foo <$> foo
<|> Bar <$> baz <*> baz
<|> Qux <$> tux
parser =
Foo <$> foo
<|> Bar <$> bar <*> baz
<|> Qux <$> qux
Also chained lens updates
update = foo .~ 5
>>> bar ?~ "new"
>>> baz %~ (+ 1)
update =
foo .~ 5
>>> bar ?~ "new"
>>> baz %~ (+ 1)
An option to be able keep the former would be fantastic.
Would fix https://github.com/fourmolu/fourmolu/issues/168 once downstreamed.
Why is it strange?
I don't see how it could be considered reasonable...
Why should the first field modification be singled out and out of line with all the other field modifications? Likewise for parser options.