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

Change abstract instance vals to defs #478

Merged
merged 1 commit into from
Feb 19, 2023
Merged

Change abstract instance vals to defs #478

merged 1 commit into from
Feb 19, 2023

Conversation

rossabaker
Copy link
Member

Fixes #264. I standardized on def: there are more of those, and MiMa seems okay with it.

build.sbt Outdated
Comment on lines 38 to 40
libraryDependencies += "org.typelevel" %%% "cats-core" % CatsVersion
libraryDependencies += "org.typelevel" %%% "cats-core" % CatsVersion,
libraryDependencies += "org.typelevel" %%% "cats-effect" % "3.4.5",

Copy link
Member

Choose a reason for hiding this comment

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

Adding CE would make a circular dependency. Also, why? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Because this was my initial playground experimenting with IOLocal and I didn't clean up after myself.

[hangs head in shame]

Copy link
Member

@armanbilge armanbilge left a comment

Choose a reason for hiding this comment

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

defs are more flexible for implementors as well: you can always implement a def with a val, but not the other way around.

@rossabaker rossabaker requested a review from a team February 9, 2023 03:14
@rossabaker
Copy link
Member Author

I'll wait a bit for an official maintainer since this one is more consequential than a README change. (Specifically: I don't think we can go back if Arman and I are deemed wrong.)

@rossabaker rossabaker merged commit dc5cb68 into main Feb 19, 2023
@armanbilge armanbilge deleted the fix-264 branch October 23, 2023 22:50
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.

Inconsistent use of def vs val in embedded typeclass
2 participants