Hi is it possible to employ `arrow.retrofit.adapter.either.ResponseE` in retrofit calls as follows:-...
t
Hi is it possible to employ
arrow.retrofit.adapter.either.ResponseE
in retrofit calls as follows:-
Copy code
@FormUrlEncoded
    @POST(OAUTH2_TOKENS_URL_PATH)
    suspend fun accessToken(
        @HeaderMap headers: Map<String, String> = emptyMap(),
        @FieldMap(encoded = true) fields: Map<String, String>
    ) : ResponseE<CallError, AccessTokenResponse>
where
CallError
is
arrow.retrofit.adapter.either.networkhandling.CallError
as when i execute my android application I recieve a kotlin serialisation error stating no serialiser can be found for CallError do i have to supply my own custom version of CallError that is annotated as @Serializable? I am using this version of Arrow
Copy code
api platform('io.arrow-kt:arrow-stack:1.1.5')
api 'io.arrow-kt:arrow-core'
api 'io.arrow-kt:arrow-core-retrofit'