on master help sign in
Merge pull request #921 from manusajith/doc_patches

Fix some typos in docs

commite02f29a379bcb593e9bafc56fe71d43bdcad04f1 authorAlp Mestanogullari <alpmestan@gmail.com> dateTue 13 Mar 2018, 09:56 (9 years ago) parentfe20b5a6a410dc
4 files changed+5−5
doc/cookbook/db-postgres-pool/PostgresPool.lhs+1−1 doc/cookbook/db-sqlite-simple/DBConnection.lhs+2−2 doc/cookbook/file-upload/FileUpload.lhs+1−1 doc/tutorial/ApiType.lhs+1−1
doc/cookbook/db-postgres-pool/PostgresPool.lhs+1−1
@@ -61,7 +61,7 @@ to flexibly set up a whole bunch of PostgreSQL connections tailored to our
6161needs and then to forget about it all by simply asking for a connection
6262using `withResource`.
6363
64−The handlers are straighforward. One takes care of inserting a new
64+The handlers are straightforward. One takes care of inserting a new
6565value in the database while the other fetches all messages and returns
6666them. We also provide a function for serving our web app given a PostgreSQL
6767connection pool, which simply calls servant-server's `serve` function.
doc/cookbook/db-sqlite-simple/DBConnection.lhs+2−2
@@ -42,9 +42,9 @@ initDB dbfile = withConnection dbfile $ \conn ->
4242 "CREATE TABLE IF NOT EXISTS messages (msg text not null)"
4343```
4444
45−Next, our server implementation. It will be parametrised (take as
45+Next, our server implementation. It will be parametrised (take as an
4646argument) by the name of the file that contains our SQLite database.
47−The handlers are straighforward. One takes care of inserting a new
47+The handlers are straightforward. One takes care of inserting a new
4848value in the database while the other fetches all messages and returns
4949them. We also provide a function for serving our web app given an
5050SQLite database file, which simply calls servant-server's `serve` function.
doc/cookbook/file-upload/FileUpload.lhs+1−1
@@ -48,7 +48,7 @@ dedicated `ReqBody`-like combinator named
4848This combinator takes two parameters. The first one is the
4949"backend" to use. Currently, you only have the choice between
5050`Mem` and `Tmp`. The former loads the entire input in memory,
51−even the uploadedd files, while `Tmp` will stream uploaded
51+even the uploaded files, while `Tmp` will stream uploaded
5252files to some temporary directory.
5353
5454The second parameter is the type you want the multipart data
doc/tutorial/ApiType.lhs+1−1
@@ -137,7 +137,7 @@ type StreamGet = Stream 'GET
137137type StreamPost = Stream 'POST
138138```
139139
140−These describe endpoints that return a stream of values rather than just a single value. They not only take a single content type as a parameter, but also a framing strategy -- this specifies how the individual results are deliniated from one another in the stream. The two standard strategies given with Servant are `NewlineFraming` and `NetstringFraming`, but others can be written to match other protocols.
140+These describe endpoints that return a stream of values rather than just a single value. They not only take a single content type as a parameter, but also a framing strategy -- this specifies how the individual results are delineated from one another in the stream. The two standard strategies given with Servant are `NewlineFraming` and `NetstringFraming`, but others can be written to match other protocols.
141141
142142
143143### `Capture`