-
Notifications
You must be signed in to change notification settings - Fork 188
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
PatternSynonyms vs Show/Read #463
Comments
One approach is:
That is, in 3.1:
And then, in 3.2:
I wonder how to warn |
Cc: also @infinity0 |
@eborden Note that we are planning to introduce |
The variant with |
Anyone else? |
@vdukhovni Let's add custom |
@vdukhovni Please don't use |
Just curious, can you explain why? |
For backward compatibility. Probably we can throw it away now. But we decided to use |
I thought the upcoming release requires at least GHC 8.0, and that |
I think it is reasonable to stay with |
@vdukhovni Would you like to add custom |
I didn't know it was up to me. If nobody else is willing to do it, I'll see what I can do... |
Sorry for the ambiguity. I guess that you are the best person to implement it. |
@vdukhovni recruited me to work on implementing new read/show instances for the various types still missing them, and i went ahead and developed a more robust paradigm for easily implementing many without doubling up on boilerplate pattern-matches for each instance. I also caught a bug in Network.Socket.Options. Both my WIP changes and the bug removal are included in a pull request I just filed. #465 今後よろしくお願いいたします。 |
@archaephyrryx Thanks. こちらこそ、よろしくお願いします。 |
PatternSynonyms
solves the problem of closed sum types. However, it introduced a possible backward compatibility issue relating toShow
andRead
:It's easy to fix this issue by adding
Read
andShow
instance by hand. I would like to discuss it's worth doing.Relating to #459.
Cc: @vdukhovni, @eborden
The text was updated successfully, but these errors were encountered: