pakoito
08/02/2018, 10:21 AMdcampogiani
08/04/2018, 9:25 AMdcampogiani
08/04/2018, 9:25 AMraulraja
08/19/2018, 3:59 PMpakoito
08/20/2018, 9:21 PMpakoito
08/20/2018, 9:21 PMraulraja
08/23/2018, 6:44 PMjacob
08/23/2018, 11:27 PMpakoito
08/27/2018, 3:53 PMpakoito
09/01/2018, 10:44 PMJorge Castillo
09/02/2018, 9:41 AMpakoito
09/03/2018, 10:17 PMJorge Castillo
09/05/2018, 1:18 PMraulraja
09/06/2018, 3:06 PMextension
and with
as valid syntax running on IDEA with the modified compiler. Next step resolution!jacob
09/06/2018, 11:24 PMtginiotis
09/07/2018, 10:39 AMwith(MA) { ... }
construct in the function body not superfluous?
Since it is clear that the function needs to be called with a typeclass instance (MA
) as an argument and so the instance is available/provided in the function's context for all A
types without any additional with(MA) { ... }
syntax?tginiotis
09/10/2018, 11:41 AMtoxara
09/10/2018, 12:24 PMfun <A> something(with Typeclass1<A>, Typeclass2<A>)
?tomasruizlopez
09/10/2018, 12:52 PMvararg
and because it is easier to implement. Perhaps in the future we can include unnamed parameters and just one with
to resolve all typeclass instances.themishkun
10/06/2018, 2:56 PMLeandro Borges Ferreira
10/08/2018, 8:19 PMraulraja
10/08/2018, 8:47 PMLeandro Borges Ferreira
10/08/2018, 8:52 PMinterface ApiClient {
@GET("search/repositories")
fun getRepositoriesIO(@Query("q") language: String,
@Query("sort") order: String,
@Query("page") page: Int): IO<GithubAnswerDto>
}
Leandro Borges Ferreira
10/08/2018, 8:53 PMraulraja
10/08/2018, 9:00 PMcore
called something like integrations/retrofit
. Is it possible to also define an endpoint in a polymorphic way? Thinking in something like:
class ApiClient<F>(async: Async<F>) : Async<F> by async {
@GET("search/repositories")
fun getRepositories(
@Query("q") language: String,
@Query("sort") order: String,
@Query("page") page: Int): Kind<F, GithubAnswerDto>
}
or
interface ApiClient {
@GET("search/repositories")
fun <F> getRepositoriesIO(@Query("q") language: String,
@Query("sort") order: String,
@Query("page") page: Int): Kind<F, GithubAnswerDto>
}
?Leandro Borges Ferreira
10/08/2018, 9:09 PM@GET("search/repositories")
fun getRepositoriesEffect(@Query("q") language: String,
@Query("sort") order: String,
@Query("page") page: Int): CallK<GithubAnswerDto>
We tried with Kind<F, GithubAnswerDto>, but the Response cannot have Parametrized typesraulraja
10/08/2018, 9:13 PMcore
called integrations
would work better until we reach 1.0.0Leandro Borges Ferreira
10/08/2018, 9:16 PMraulraja
10/08/2018, 9:18 PMLeandro Borges Ferreira
10/08/2018, 9:18 PM