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

Integrating with tagless final #84

Open
eli-jordan opened this issue May 27, 2019 · 1 comment
Open

Integrating with tagless final #84

eli-jordan opened this issue May 27, 2019 · 1 comment

Comments

@eli-jordan
Copy link

What is the recommended way to use TraceT with a service built using tagless final?

I think it can work, if the interpreters of your algebras are all based on TraceT. However, I'd like to use typeclass constraints for the interpreters too.

Any tips?

@sbuzzard
Copy link
Member

sbuzzard commented Nov 1, 2019

Apologies for not seeing this sooner.
You can have typeclass constraints on the interpreters as well and then apply the TraceT[IO, ?] (replace IO with whatever concrete effect type you're using, if it's something like Monix or ZIO), just as you'd apply the naked IO (or whatever) for a non-trace enabled interpreter. It would help to see an example. I realize this is a way late reply and all this may have been resolved or you've moved on some time ago. Apologies again.

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

2 participants