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

Parse error of empty record definition #454

Open
Lev135 opened this issue May 18, 2023 · 0 comments
Open

Parse error of empty record definition #454

Lev135 opened this issue May 18, 2023 · 0 comments

Comments

@Lev135
Copy link
Contributor

Lev135 commented May 18, 2023

data D = D {}
error:
    Cannot parse data constructor in a data/newtype declaration: {}

Maybe I'm doing something wrong and type of definitions is not allowed, but ghc doesn't complain

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

No branches or pull requests

1 participant