New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indenting class creates syntax error #433

Open
lorenzo opened this Issue Jul 15, 2017 · 4 comments

Comments

Projects
None yet
3 participants
@lorenzo
Copy link
Contributor

lorenzo commented Jul 15, 2017

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.

@lorenzo

This comment has been minimized.

Copy link
Contributor Author

lorenzo commented Jul 15, 2017

This is probably a symptom of #400 but looks like recent changes made it also output a syntax error

@lorenzo

This comment has been minimized.

Copy link
Contributor Author

lorenzo commented Jul 15, 2017

The error appears after the commit f20fee2

@sighingnow

This comment has been minimized.

Copy link
Collaborator

sighingnow commented Jul 16, 2017

Thanks for your reporting!

@NorfairKing

This comment has been minimized.

Copy link

NorfairKing commented Aug 19, 2017

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment