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

Implicit ContextShift[F] given DualContext[F]? #65

Open
rzeigler opened this issue Jan 27, 2019 · 0 comments
Open

Implicit ContextShift[F] given DualContext[F]? #65

rzeigler opened this issue Jan 27, 2019 · 0 comments

Comments

@rzeigler
Copy link

rzeigler commented Jan 27, 2019

Perhaps I don't understand the intended usage model, but since a DualContext[F] contains a ContextShift[F] would it make sense to provide an implicit DualContext[F] -> ContextShift[F]. I have had to write this signature def stream[F[_]: Sync](implicit cs: ContextShift[F], dual: DualContext[F]) which seems redundant. Alternatively, the cs inside DualContext could be made implicit for importing.

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

No branches or pull requests

1 participant