lspitzner / brittany

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

Brittany removes backticks in infix type constructors #166

Closed 5outh closed 6 years ago

5outh commented 6 years ago

This is best explained with an example. Take the following haskell program:

data F = F Int Int
foo = \(_ `F` _) -> ()

Running brittany on this file produces the following, broken code:

data F = F Int Int
foo = \(_F_) -> ()

This doesn't seem to happen outside of lambda arguments.

Brittany version:

brittany version 0.9.0.0
Copyright (C) 2016-2017 Lennart Spitzner
There is NO WARRANTY, to the extent permitted by law.

I'm now realizing I'm a bit behind; will update presently to determine if this issue has been ironed out!

5outh commented 6 years ago

Updated to 0.11.0.0 and everything works as expected. Sorry for the noise!