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

Hide Read typeclass in another package #76

Closed
guersam opened this issue May 17, 2016 · 4 comments
Closed

Hide Read typeclass in another package #76

guersam opened this issue May 17, 2016 · 4 comments
Labels

Comments

@guersam
Copy link

guersam commented May 17, 2016

I found that better.files.Read added in 2.16.0 conflicts with my home-grown Read, which exists for exactly the same reason.

As the documentation seems like recommending all-in-one import such as import better.files._, I'd suggest that we keep this kind of utilities in a dedicated package like better.files.util to avoid unnecessary collisions. WDYT?

@pathikrit
Copy link
Owner

pathikrit commented May 17, 2016

You can resolve this simply by doing this:

import better.files.{Read => BFRead, _}

@guersam
Copy link
Author

guersam commented May 18, 2016

Thanks for the response, that's already what I'm doing for now.

What I'd point out is that since better.files.Read is temporal (which will likely to be removed when typelevel/cats#932 is resolved), It would be more future-proofing to moving it from the project-wise top level scope to a dedicated package such as util or internal so that users easily can see it's not a part of better-files' stable public API.

I'm willing to open a PR if you think it makes sense, but I don't mind if you don't as I've already applied the suggested workaround.

@pathikrit
Copy link
Owner

I will move it into better.files.Scanner.Read then.

@pathikrit pathikrit reopened this May 21, 2016
@guersam
Copy link
Author

guersam commented May 21, 2016

Thanks!

On Sat, May 21, 2016, 1:38 PM Pathikrit Bhowmick notifications@github.com
wrote:

Closed #76 #76 via
3b01255
3b01255
.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#76 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants