Johan Basson
12/11/2019, 8:53 AMfun findUserByUsername(username: String, con: Connection): IO<Either<Exception, Option<User>> {
...
}
Or would you combine IO & Reader as in (Not sure about syntax)
fun findUserByUsername(username: String): Reader<Context, IO<Either<Exception, Option<User>>> {
...
}
Or would you keep it simple like this:
fun findUserByUsername(username: String, con: Connection): Either<Exception, Option<User>> {
...
}
Which one is the "best"?