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 warning for lack of HTTPS support #105

Closed
sjakobi opened this issue Jan 23, 2017 · 6 comments
Closed

Add warning for lack of HTTPS support #105

sjakobi opened this issue Jan 23, 2017 · 6 comments

Comments

@sjakobi
Copy link
Member

sjakobi commented Jan 23, 2017

Newcomers to the Haskell ecosystem such as this one often don't realize at first that HTTP lacks HTTPS support.

Could a warning about this be added to the Cabal description? Would a PR be welcome? Should the warning include a recommendation e.g. for http-client?

@hsenag
Copy link
Member

hsenag commented Jan 23, 2017

Happy to get a PR. Is http-client the clear winner as an alternative? Otherwise is there a web page to point to discussing the options (I had a quick look on the wiki but didn't find anything).

@sjakobi
Copy link
Member Author

sjakobi commented Jan 23, 2017

Is http-client the clear winner as an alternative?

There are other options like wreq, and more recently req.

http://haskelliseasy.readthedocs.io/en/latest/#http-clients might be a good reference and is probably a good starting point for a newcomer.

There's a (presumably opinionated) discussion of HTTP clients at https://github.com/mrkkrp/req#motivation-and-req-vs-other-libraries.

@hsenag
Copy link
Member

hsenag commented Jan 24, 2017

OK, maybe just list the alternatives? Neither of those look all that clear to me.

@hvr
Copy link
Member

hvr commented Jan 24, 2017

@sjakobi I just wish there was a better list of alternatives; all those lists I see are opinionated towards using http-client under the hood in some way or another... :-/

@sjakobi
Copy link
Member Author

sjakobi commented Jan 24, 2017

all those lists I see are opinionated towards using http-client under the hood in some way or another...

@hvr I'm simply not aware of any ok-looking HTTP-client library that supports HTTPS and doesn't rely on http-client. I'm also not aware of any issues that would make relying on http-client a bad thing…

We can point people at https://hackage.haskell.org/packages/#cat:Network of course, but we should keep in mind that the target audience for the warning is newcomers who are exploring the ecosystem and may have difficulties telling apart useful packages from less useful or unmaintained packages.

Referring them to http-client/http-client-tls, req and wreq seems better to me than not giving any guidance at all.

@sjakobi
Copy link
Member Author

sjakobi commented Jan 24, 2017

I have opened #106. If necessary we can discuss the wording there.

@sjakobi sjakobi closed this as completed Jan 24, 2017
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

No branches or pull requests

3 participants