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

Improve Client docs #727

Merged

Conversation

declension
Copy link
Contributor

@declension declension commented Apr 7, 2017

  • Use suggestion in URL formation documentation is lacking #606 to document pattern matching client behaviour better
  • Helpful suggestion of reading in order in the index
  • A couple of extra internal links
  • Fix some typos / punctuation.

Fixes #606

 * Use suggestion in haskell-servant#606 to document pattern matching client behaviour better
 * Helpful suggestion of reading in order in the index
 * A couple of extra internal links
 * Fox some typos / punctuation.

Fixes haskell-servant#606
@alpmestan
Copy link
Contributor

LGTM

@@ -1,12 +1,11 @@
# Querying an API

While defining handlers that serve an API has a lot to it, querying an API is simpler: we do not care about what happens inside the webserver, we just need to know how to talk to it and get a response back. Except that we usually have to write the querying functions by hand because the structure of the API isn't a first class citizen and can't be inspected to generate a bunch of client-side functions.
While defining handlers that [serve an API](Server.lhs) has a lot to it, querying an API is simpler: we do not care about what happens inside the webserver, we just need to know how to talk to it and get a response back. Except that we usually have to write the querying functions by hand because the structure of the API isn't a first class citizen and can't be inspected to generate a bunch of client-side functions.
Copy link

@3noch 3noch Apr 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original grammar wasn't quite correct. Perhaps while we're here: Replace "Except that..." with "The only exception is that..." and it will be correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm yes. To me it's not so much wrong but colloquial / chatty in style. Happy to change it though.

How about That said, we usually have to write.. (it might not be the only exception), and perhaps changing a bunch of to just the?

Copy link

@3noch 3noch Apr 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

Copy link

@3noch 3noch Apr 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sentence starting with "Except that" had no main subject and verb, which is why I said it was not correct grammar (you must have both of those to have a valid sentence). But you're right. If we're going for "chatty" then grammar is of no concern. ;)

@phadej phadej merged commit 7e5eca3 into haskell-servant:master May 5, 2017
@declension declension deleted the 606-fix-client-documentation branch May 5, 2017 13:52
@declension
Copy link
Contributor Author

Thanks!

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

4 participants