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

LiftTrace concept #448

Closed

Conversation

armanbilge
Copy link
Member

@armanbilge armanbilge commented Nov 12, 2021

So this is not quite what we discussed on Discord, but I hope you'll like it better since you are suspicious of the two-parameter typeclasses. This does away with that by keeping the effect used for tracing completely opaque. This enables instances for both Kleisli and IOLocal.

IMO the ugliest part of it is that users will have to wrap their program in:

trait Traceable[A] {
  def run[F[_]](implicit trace: Trace[F]): F[A]
}

Everything subject to bikeshed of course. Let me know what you think!

@armanbilge
Copy link
Member Author

Yeah, just ignore everything above, I bungled it 😅 obviously the problem with an opaque effect is that you don't have any other constraints available besides Trace ... which makes it pretty useless. So back to the original idea.

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.

1 participant