-
Notifications
You must be signed in to change notification settings - Fork 71
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
Basic explanation of 59692 #534
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,10 @@ | |||
--- | |||
title: Duplicate instance declarations | |||
summary: An instance has been defined twice for the same type. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not necessarily exactly twice, is it? A more precise way to describe this would be, perhaps:
summary: An instance has been defined twice for the same type. | |
summary: An instance of a class has been defined once again for the same type. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"once again" makes it sound like there was an instance in the past and now there is one once again. Perhaps just "multiple times" instead of "twice" then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But for the compiler, there was an instance that it saw in the past, only it's very close past: maybe in the same .hs file (but maybe not). So, I don't see a problem here. But "multiple times" works for me too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to have a less artificial example, but it can be left for future work.
No description provided.