-
Notifications
You must be signed in to change notification settings - Fork 95
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
Solution to #109 #110
Solution to #109 #110
Conversation
type HasContext[F[_], C] = Context[F] { type Ctx = C } | ||
type HasLocal[F[_], C] = Local[F] { type Ctx = C } | ||
type HasContext[F[_], C] = Context[F] { type Ctx = C } | ||
object HasContext { |
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.
I fill those belong to Errors.scala
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.
@Odomontois Why do you think summoning instances belongs to Errors file?
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.
package objects are nasty things in terms of refactoring, bytecode, binary compatibility
I'd like to have them as small as possible, so all the things, that are defineable in the package itself, should be defined in the package itself, I feel
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.
Personally I don't like summoner objects inside the the package objects, it complicates bytecode, refactoring and intermodule compatibility.
Please move them to the toplevel
update from master;
finally moved summoners to Errors.scala as @Odomontois said |
@FunFunFine can you please format the files? Seems like our modern formatter doesn't quite like current formatting: https://travis-ci.com/TinkoffCreditSystems/tofu/jobs/282971940#L269 |
LGTM. @Odomontois if you don't have any objections I will merge this |
Made it possible to summon implicit instances from context