Skip to content

Update Overlapping instances error message.#3084

Merged
paf31 merged 3 commits intopurescript:masterfrom
drets:error-message
Sep 24, 2017
Merged

Update Overlapping instances error message.#3084
paf31 merged 3 commits intopurescript:masterfrom
drets:error-message

Conversation

@drets
Copy link
Copy Markdown
Contributor

@drets drets commented Sep 21, 2017

Fixes #3071.

Copy link
Copy Markdown
Member

@LiamGoodacre LiamGoodacre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Could you also add yourself to the contributors file?

, line "Overlapping type class instances can lead to different behavior based on the order of module imports, and for that reason are not recommended."
, line "They may be disallowed completely in a future version of the compiler."
, indent $ paras (map (line . showQualified showIdent) ds)
, line "Overlapping type class instances can lead to different behavior based on the order of module imports, and for that reason are disallowed."
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if there is any point in mentioning the order of module imports bit. Given that they are supposed to be disallowed anyway, you're not supposed to be able to observe the described "different behavior" because you'd just see this error message. (Although the overlap check does need improving so that it catches all scenarios).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also tempted to get rid of this line. We can give a more detailed explanation on the wiki.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks guys for comments!

I removed the line with the hint why overlapping instances are bad and added myself to contributors.

(Although the overlap check does need improving so that it catches all scenarios).

If there is something else should be done outside of the file it's probably easier to close a PR. Since I need pointers of how to do that.

Copy link
Copy Markdown
Contributor

@paf31 paf31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@paf31 paf31 merged commit d4a3378 into purescript:master Sep 24, 2017
@drets
Copy link
Copy Markdown
Contributor Author

drets commented Sep 24, 2017

Thank you, guys 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants