Skip to content
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

GADT forall does not round-trip on ghc-8.6 #242

Open
lspitzner opened this issue Jun 21, 2019 · 2 comments
Open

GADT forall does not round-trip on ghc-8.6 #242

lspitzner opened this issue Jun 21, 2019 · 2 comments
Assignees

Comments

@lspitzner
Copy link
Owner

lspitzner commented Jun 21, 2019

data StupidExistential a where
  StupidExistential :: forall a . StupidExistential a

turns into

data StupidExistential a where
  StupidExistential :: a StupidExistential a

(and interestingly into this in the next step, although that really does not matter:)

data StupidExistential a where
  StupidExistential ::a StupidExistential a

This is a bug in ghc-exactprint, confirmed on ghc-exactprint-5.8 and ghc-exactprint-0.6, confirmed on ghc-8.6.5. Does not occur on earlier ghc versions.

Will open an issue on ghc-exactprint. See alanz/ghc-exactprint#79.

Might want a work-around in the meantime.

@lspitzner lspitzner self-assigned this Jun 21, 2019
@lspitzner lspitzner added the bug label Jun 21, 2019
@tfausak
Copy link
Collaborator

tfausak commented Jun 24, 2019

The space thing was reported earlier in #217.

@lspitzner
Copy link
Owner Author

(This is a bit worse though, because removing forall can break the code.)

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

No branches or pull requests

2 participants