github-actions[bot] on gh-pages
deploy: 4ee392ff78a0196a9be91bc… (compare)
armanbilge on ignore-jmh-main
armanbilge on main
Ignore sbt-jmh updates on main … Merge pull request #6952 from h… (compare)
github-actions[bot] on gh-pages
deploy: 71477556de26849ca59c9f3… (compare)
armanbilge on series
armanbilge on 0.23
Update sbt-jmh to 0.4.4 in seri… Merge pull request #6951 from h… (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()
}
fetch
you can use an extractor like case Ok(resp)
instead of if (x.status == ....)