hindent
hindent copied to clipboard
Indenting class creates syntax error
Trying to indent this snippet
-- | Foo
class GToJSON enc arity f where
-- | Bar
gToJSON :: Options -> ToArgs enc arity a -> f a -> enc
Produces
-- | Foo
class GToJSON enc arity f
-- | Bar
|
where
gToJSON :: Options -> ToArgs enc arity a -> f a -> enc
Which makes the code not compile anymore.
This is probably a symptom of https://github.com/commercialhaskell/hindent/issues/400 but looks like recent changes made it also output a syntax error
The error appears after the commit https://github.com/commercialhaskell/hindent/commit/f20fee27cb6d936bd6a5d2b796ae060e0044ebf2
Thanks for your reporting!
+1
Closing as the current master formats the input correctly.