Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for http-conduit-2.3 and conduit-1.3 #59

Merged
merged 4 commits into from
Jun 21, 2018

Conversation

cdepillabout
Copy link
Contributor

@cdepillabout cdepillabout commented Jun 20, 2018

This PR adds support for both http-conduit-2.3 and conduit-1.3.

At work we are trying to use twitter-conduit with stackage's lts-11, which includes http-conduit-2.3 and conduit-1.3. Once this gets merged it, it would be great if you could cut a release!

It seems like there are quite a few changes in conduit-1.3. ResumableSource has been removed, so now some of the http-conduit functions just return a normal Source instead. (Also, Source has been deprecated, and the conduit docs say to use the full ConduitT type.) Now some of the functions in this package are returning a ConduitT instead of a ResumableSource.

Also, there was a problem with using MonadBase IO. To be honest, I'm not sure what the problem was. I think some type has lost a MonadBase instance, but I didn't really look into what has happened. Instead, I just switched everything to using MonadIO. I don't think there should be a problem with this, but if there is, let me know.

I think the Snoyman-family of libraries have been moving away from MonadBase and MonadBaseControl and instead settling on MonadIO and UnliftIO. I thought this might be the reason for the MonadBase IO problem, but like I said, I didn't look into it.

I also modified the travis.yml file to test on ghc-8.4.3.

This PR would require a major version bump before being released to Hackage.

@cdepillabout
Copy link
Contributor Author

I haven't actually tried compiling this PR with older versions of GHC/http-conduit/conduit yet. I'll do that tomorrow.

Also, if the CI tests fail I'll try to figure out why.

It is actually API change in http-conduit that is affecting us.  This
change should allow twitter-conduit to continue compiling on ghc-7.10
and ghc-7.8.  This should fix the travis failure.
@cdepillabout
Copy link
Contributor Author

Okay, it looks like with commit 798e90d, everything should be building successfully.

This PR should be ready for review.

@himura
Copy link
Owner

himura commented Jun 21, 2018

It looks great! Thanks a lot.
I'll merge and release it to hackage sooner.

@himura himura merged commit 89b3863 into himura:master Jun 21, 2018
@cdepillabout cdepillabout deleted the support-http-conduit-2.3 branch June 21, 2018 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants