We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 it possible to summon specific contextual instances via
HasContext[F, C] HasLocal[F, C] HasContextRun[F, G, C]
The text was updated successfully, but these errors were encountered:
I currently using a solution which works like:
trait Id trait Templates type HasTemplates[F[_]] = HasContext[F, Templates] type HasId[F[_]] = HasContext[F, Id] def example[F[_]: HasTemplates: HasId: Monad] = { for { id <- hasContext[HasId].get templates <- hasContext[HasTemplates].get } yield () }
Not sure if it is good enough, though. What do you think?
Sorry, something went wrong.
Merge pull request #110 from FunFunFine/master
713be68
Solution to #109
@Odomontois should this issue be closed?
No branches or pull requests
Make it possible to summon specific contextual instances via
The text was updated successfully, but these errors were encountered: