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

Section 2.2 DataKinds - Error in user example #11

Open
sholland1 opened this issue Mar 24, 2019 · 1 comment
Open

Section 2.2 DataKinds - Error in user example #11

sholland1 opened this issue Mar 24, 2019 · 1 comment

Comments

@sholland1
Copy link
Contributor

This example causes an error: Multiple declarations of 'User'

data UserType = User | Admin
data User = User {...}

Since DataKinds is turned on, the first declaration is creating a type User in addition to the usual type in the second declaration.

@isovector
Copy link
Owner

Nice find. That's what I get for writing stubbed out code! I'm pretty burned out on this project, but would be willing to accept a PR. Otherwise I'll hold onto the bug if the book ever finds a second edition.

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

2 participants