Skip to content

Show instance generates invalid Haskell code #21

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

Open
fizruk opened this issue Sep 2, 2016 · 0 comments
Open

Show instance generates invalid Haskell code #21

fizruk opened this issue Sep 2, 2016 · 0 comments

Comments

@fizruk
Copy link
Collaborator

fizruk commented Sep 2, 2016

Most datatypes implement Show in such a way that the result is a valid Haskell code (maybe with some extensions turned on, but still). However, before fixing the Show instance, I would consider a better way to encode Books. E.g. something like this (although I'm not sure if it's possible):

Book [#age =: 30, #name =: "Jane"]
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