github-actions[bot] on gh-pages
deploy: 0e253e30bf983545cb0ebdd… (compare)
armanbilge on series
armanbilge on 0.23
Update cats-effect, cats-effect… Merge pull request #6956 from h… (compare)
http4s-steward[bot] on series
Update cats-effect, cats-effect… (compare)
Effect
type class?
F[A]
can't be Kleisli[G, E, A]
because you need an E
before you have any hope of getting an A
out, so you can't write Kleisli[G, E, A] => A
which is basically what Effect is.
IO
inside, it's not a big deal
def foo() = {
val req = ...
client.fetch(req)(x => {
if (x.status == OK) { /* do this /* }
else if (x.status == ReuqestTimeout) { /* do that */ }
//...
}).unsafeRunSync()
}