Skip to content

LiftTrace concept - #448

Closed
armanbilge wants to merge 5 commits into
typelevel:series/0.1from
armanbilge:feature/lift-trace
Closed

LiftTrace concept#448
armanbilge wants to merge 5 commits into
typelevel:series/0.1from
armanbilge:feature/lift-trace

Conversation

@armanbilge

@armanbilge armanbilge commented Nov 12, 2021

Copy link
Copy Markdown
Member

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
Copy Markdown
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