haskell / stylish-haskell

Haskell code prettifier
Other
986 stars 150 forks source link

Kind signature disappears after applying stylish-haskell to a GADT #338

Closed vks4git closed 2 years ago

vks4git commented 3 years ago

i got strange behaviour after I had applied stylish-haskell to my code with GADTs. The kind signature of my type disappeared. I used the latest commit from master.

--before:
data Foo :: * -> * where
  Bar :: () -> Foo ()

--after:
data Foo where
  Bar :: () -> Foo ()
EncodePanda commented 3 years ago

I think most of the work was done in https://github.com/haskell/stylish-haskell/pull/344. This should be easy to fix now.

GulinSS commented 3 years ago

How to do a workaround while fix has not been applied?