rikvdkleij / intellij-haskell

IntelliJ plugin for Haskell
https://rikvdkleij.github.io/intellij-haskell/
Apache License 2.0
1.31k stars 94 forks source link

deriving newtype syntax gets highlighted as error if the declaration is in one line #582

Closed L7R7 closed 4 years ago

L7R7 commented 4 years ago

When doing newtype deriving, the newtype keyword is marked as syntax error, unless I split the declaration into two lines like in the following image: image

Only the first occurence gets marked as syntax error, even if there is more than one single-line newtype declaration. It compiles fine with both variants (if DerivingStrategies and GeneralizedNewtypeDeriving is enabled, of course).

rikvdkleij commented 4 years ago

Thanks for reporting!

Will fix that.

rikvdkleij commented 4 years ago

Fixed in beta76.

L7R7 commented 4 years ago

Works for me, Thanks!