so I can write ``` when (call.response.status.valu...
# arrow
b
so I can write
Copy code
when (call.response.status.value) {
                    200 -> effect { call.response.readText() }
                    404 -> IO.raiseError<String>(NonExistentReference).bind()
                    else -> IO.raiseError<String>(UnManagedReturnCode(call.response.status.value)).bind()
                }
r
Do you have a full example we can try to compile? In the meantime try with
NonExistentReference.raiseError<String>()
b
Not yet, I'm trying to write tests and cleaning up things that may be easier to share code after
your solution seems to work (and it inferred the <String>
👍 1
r
effect
is not final and neither is
fx
it's changing as we speak
it'll be more stable in a couple of weeks
b
good. I just hope it doesn't change too much 😉