tweag / ormolu

A formatter for Haskell source code
https://ormolu-live.tweag.io
Other
958 stars 83 forks source link

Wrong formatting between the dollar sign and the next word #700

Closed ryukzak closed 3 years ago

ryukzak commented 3 years ago

Wrong formatting between the dollar sign and the next word

Describe the bug Wrong formatting between the dollar sign and the next word.

To Reproduce

f = decideAt 1 1 $consume "a"

receive:

f = decideAt 1 1 $consume "a"
--               ^
--               |
--               +--- no space here

Expected behavior

f = decideAt 1  1 $ consume "a"
--                 ^
--                 |
--                 +--- add space here

Environment

mheinzel commented 3 years ago

I'm not a maintainer, but this looks like a duplicate of https://github.com/tweag/ormolu/issues/699?

ryukzak commented 3 years ago

You right.