I'm also trying to integrate with Ktor, but it see...
# arrow
m
I'm also trying to integrate with Ktor, but it seems a little difficult to get Ktor to play nicely with Arrow types. Fairly new to this though, so I might be missing something...
r
since Ktor supports suspends integrating with Ktor is for the most part calling
.suspended()
in the endpoint if you are already working with IO. Also see https://medium.com/siili-automotive/how-to-build-rest-api-with-arrow-ktor-and-requery-in-kotlin-e5438c951418 from @Rafal Piotrowski
m
Thanks! I didn't realize
suspended()
was there. That seems to have solved my problem. I am using
IO
so that came together nicely.
I also found this: https://github.com/arrow-kt/arrow-ktor Curious what the state of that is?
r
It's on pause until IO is finished and there will be integrations for spring boot, ktor and others or retired if the integration ends up being as simple as just .suspended
But if you want to suggest anything there or update it we are also looking for help with those integrations which should be fairly straightforward to build now that IO supports suspend
m
Cool! Yeah, I'd be interested in helping there...
r
great, ping us if you have any questions or suggestion where Arrow could integrate with those libs