If you have any additional questions to the one I ...
# arrow
s
If you have any additional questions to the one I answered in the gist I’d love to help you further solve your problem.
t
so basically this is the place where I have to commit to a specific type (IO, Either, Try) instead of solving it with generics?
s
You can also solve it in a generic way 🙂
Bracket
exposes the
bracketCase
functions and all other functions to guarantee safety like
guarantee(finalizer: Kind<F, Unit>)
.
Taking a quick look you can rewrite this as.
fun <F> Bracket<F>.saveUserAndProfile(id: Long, user: UserInput, profile: ProfileInput): Kind<F, Tuple2<User, Profile>>
t
oh great. that was the missing part 🙂 thanks