Migrate to servant v0.7
klappvisor opened this issue · 4 comments
I can try and help. Since the stackage nightly-2016-05-08 has servant v0.6.1 I'll migrate to that version. Then migrating to v0.7 is easy since releases should be much smaller now.
From the servant changelogs I think this is what is needed:
- Switch from
EitherT
toExceptT
- Add
Manager
andBaseUrl
to every api function (see servant-client v0.6 changelog) - Switch from
ToText
andFromText
toToHttpApiData
andFromHttpApiData
So the following dependecies should be needed:
transformers
(ExceptT
)http-api-data
({To,From}HttpApiData
)http-client
(Manager
)
I'll send a pull request soon if everything goes as planned.
Hi Arguggi,
Contribution is highly appreciated!
I was almost done but the most recent tls (1.3*) library seems to be bugged. I tried sending a message to telegram but received a connection error (looks like this issue) . Compiling with tls-1.2.2 seems to works.
Edit: tls-1.3.7 seems to fix the error
Updated servant version to v0.7 via extra-deps. I will come back to it to check resolver version before merge to master.