lspitzner / brittany

haskell source code formatter
GNU Affero General Public License v3.0
691 stars 72 forks source link

Syntactically invalid result when formatting lambda with laziness annotation #228

Closed expipiplus1 closed 5 years ago

expipiplus1 commented 5 years ago
$ brittany --output-on-errors
a = \ ~x -> x
ERROR: brittany pretty printer returned syntactically invalid result.
a = \~x -> x

Brittany abuts the ~ with \ which is invalid

lspitzner commented 5 years ago

Fixed in 6879436e6721adb3b91f3b32072cd02019b20e8a.

expipiplus1 commented 5 years ago

Thanks!

On Tue, 3 Sep 2019, 07:11 Lennart Spitzner, notifications@github.com wrote:

Closed #228 https://github.com/lspitzner/brittany/issues/228.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lspitzner/brittany/issues/228?email_source=notifications&email_token=AAGRJXAXFQZ4A7S5U4KE3RTQHWMTNA5CNFSM4HK25CEKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOTMLAZJY#event-2601913511, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGRJXGN5NJG5M2R6MBOXJDQHWMTNANCNFSM4HK25CEA .