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

Make a bunch of instances traits/classes private/sealed #612

Merged
merged 1 commit into from
Nov 7, 2015

Conversation

ceedubs
Copy link
Contributor

@ceedubs ceedubs commented Nov 7, 2015

This is related to #496, but it's a broader issue than just this change.

These instances traits/classes are used internally for code organization
and implicit prioritization, but they aren't really meant to be part of
the public API. Making them private/sealed may be helpful for binary
compatibility in the future. It also may be a helpful indicator to
newcomers which traits/classes are actually meant for consumption, so
they can ignore some of the noise.

So far, I have left the traits for orphans from std (such as
StringInstances), and I have left the omni-instance traits exposed.

This is related to typelevel#496, but it's a broader issue than just this change.

These instances traits/classes are used internally for code organization
and implicit prioritization, but they aren't really meant to be part of
the public API. Making them private/sealed may be helpful for binary
compatibility in the future. It also may be a helpful indicator to
newcomers which traits/classes are actually meant for consumption, so
they can ignore some of the noise.

So far, I have left the traits for orphans from `std` (such as
`StringInstances`), and I have left the omni-instance traits exposed.
@codecov-io
Copy link

Current coverage is 76.29%

Merging #612 into master will not affect coverage as of e300ab1

@@            master    #612   diff @@
======================================
  Files          160     160       
  Stmts         2194    2194       
  Branches        68      68       
  Methods          0       0       
======================================
  Hit           1674    1674       
  Partial          0       0       
  Missed         520     520       

Review entire Coverage Diff as of e300ab1

Powered by Codecov. Updated on successful CI builds.

@adelbertc
Copy link
Contributor

👍

1 similar comment
@mpilquist
Copy link
Member

👍

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

Successfully merging this pull request may close these issues.

4 participants