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

Solution to #109 #110

Merged
merged 10 commits into from
Feb 5, 2020
Merged

Solution to #109 #110

merged 10 commits into from
Feb 5, 2020

Conversation

FunFunFine
Copy link
Member

Made it possible to summon implicit instances from context

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 {
Copy link
Member

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

Copy link
Collaborator

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?

Copy link
Member

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

@Odomontois Odomontois added the enhancement New feature or request label Jan 21, 2020
Copy link
Member

@Odomontois Odomontois left a 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

@FunFunFine FunFunFine changed the title Solution to #105 Solution to #109 Jan 26, 2020
@FunFunFine
Copy link
Member Author

finally moved summoners to Errors.scala as @Odomontois said

@Z1kkurat
Copy link
Collaborator

Z1kkurat commented Feb 3, 2020

@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

@Z1kkurat
Copy link
Collaborator

Z1kkurat commented Feb 4, 2020

LGTM. @Odomontois if you don't have any objections I will merge this

@Odomontois Odomontois merged commit 713be68 into tofu-tf:master Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants