Adopt cats-effect type-classes?
See original GitHub issueI figured we should consider this as a way to abstract over concrete IO type for Endpoint
.
As @travisbrown mentioned, there is no way to provide law-full instances of effect type-classes for Twitter Futures. Maybe doing so for Rerunnable
is a fine middle-ground?
Issue Analytics
- State:
- Created 6 years ago
- Comments:13
Top Results From Across the Web
Overview · Cats Effect - Typelevel
The typeclass hierarchy within Cats Effect defines what it means, fundamentally, to be a functional effect. This is very similar to how we...
Read more >Proposal: A cats-effect project · Issue #1617 - GitHub
Both cats-effect and effects4s provide a set of typeclasses for characterizing effects. ... FYI, FS2 1.0 will adopt cats and cats-effect.
Read more >Types: Never commit too early - Part 2: How typeclasses save us
Typeclasses to the rescue. Let's focus on specific examples to clear our mind. We'll take a look at some cats-effect typeclasses, but all...
Read more >Intro to Cats-Effect (Gavin Bisesi) - YouTube
Cats Effect is a functional side effect library - Gavin Bisesi explains what that means, what it gives you, how to use it,...
Read more >Introducing Dogs to Cats - American Humane
Resident dog to new cat: If you are adopting a cat, ... Continue with this type of introduction until the dog is calm...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In that case I already started an experiment quite a while ago and could land a PR soon.
I filed #954 to experiment with it in 0.22. I think we still should keep
Endpoint
methods defined in terms of Twitter Future (for the sake of keeping the user-facing API unchanged). I can totally see, however, Finch switching to cats-effect (hence being polymorphic in its effect type) somewhere after 1.0.