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:
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).
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: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
andGeneralizedNewtypeDeriving
is enabled, of course).