lspitzner / brittany

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

Overloaded labels syntax is destroyed #320

Closed majkrzak closed 3 years ago

majkrzak commented 3 years ago

When running brittany over OverloadedLabels (#foo) it gets destroyed by appending space between # and foo.

arybczak commented 3 years ago

It should work if you put -XOverloadedLabels in options_ghc in brittany.yaml.

tfausak commented 3 years ago

I can confirm that Brittany handles overloaded labels just fine:

$ brittany --version
brittany version 0.13.0.0
Copyright (C) 2016-2019 Lennart Spitzner
Copyright (C) 2019 PRODA LTD
There is NO WARRANTY, to the extent permitted by law.

$ cat example.hs
{-# language OverloadedLabels #-}
someLabel = #some

$ brittany < example.hs
{-# language OverloadedLabels #-}
someLabel = #some
majkrzak commented 3 years ago

Same here, I can't reproduce. Might be something went wrong with my lint script and extension was not detected correctly. Sorry.