> semantically, `Either<Nothing, Either<Throwable, Int>>` is correct so you `fold({ e...
p
semantically, 
Either<Nothing, Either<Throwable, Int>>
 is correct
so you
fold({ exception }, { it.fold({ error }, { success })})
g
Hi @pakoito, if this is semantically right, where is
E
in IO<E,A> used? I am confused between the use-case difference btw using
Either
for A, compared to IO<E,A>
p
It’s
Nothing
in your case
IO<A> has A or Exception. IO<E, A> has A, exception, or error
when you attempt, you put the exception into an Either as the A
g
Error as in non-recoverable?
p
error as in domain error
exception as in unexpected
g
Ok, got it! in that case, how can I raise a domain error within the IO {} block?
p
IO.raiseError
oh
within the block
g
yes
p
I see what API you’re missing
gimme asec, lemme find it
g
sure
thanks
p
there’s none, I’ll fill a ticket for it
g
awesome! thanks
g
Cool!