Commit Graph

27 Commits

Author SHA1 Message Date
Oleg Grenrus 45c1cbdfd5 Refactor Stream stuff
- Introduce SourceT, which is simple variant of "correct `ListT`".
  There are another variants possible (like in `streaming`),
  but I'm not sure there's much real difference.

- Introduce `Codensity`. There's a flag if people don't want to depend
  on `kan-extensions`.

- `StreamGenerator` and `ResultStream` are both `SourceT`.
  `Stream` combinator in `servant-client` uses `Codensity` for CPS.

- Add servant-machines, servant-conduit, servant-pipes
- Add streaming cookbook: just code, no explanations.
- Add a script to run streaming 'benchmarks'
2018-11-05 15:48:47 +02:00
Alex Ryndin 0675c62c38
Remove redundant point
# Remove redundant point
There are so much waste in the universe and we need to change the situation. The better usage the better habits of one leads a positive attitude of everyone.
# Improve disk space usage
You always hear guys complain about the cost of storage so it's appreciated as fuck. Decreasing line by 1 symbol leads to less disk space usage (up to 2 bytes at a time)!
2018-10-22 17:32:06 +03:00
Bryan Richter abd11b2a8f
Remove duplicate type declaration
UserAPI1 is already defined at line 64.
2018-05-12 16:58:43 -04:00
gbaz 7edd35c9f0 docs for streaming (#852)
* docs for new streaming related combinators
2017-12-11 21:32:17 +01:00
Oleg Grenrus 15cc4f55dd Update docs related to hoistServer 2017-10-01 20:24:22 +03:00
David Turner 8b993b9d11 Changes to docs as suggested 2017-05-17 08:24:04 +00:00
David Turner aa3716b6aa Tidy up tutorial 2017-05-17 05:50:38 +00:00
David Turner f5d9983381 Rename emptyAPIServer to emptyServer 2017-05-16 15:59:41 +00:00
David Turner a87067a6c1 Actually, serve this one so it's useful in the Docs tutorial 2017-05-16 10:07:12 +00:00
David Turner 94483d586c Add `instance HasServer EmptyAPI` 2017-05-16 10:06:25 +00:00
Oleg Grenrus 29f94a6440 Briefly correct ExceptT mentions into Handler (#693) 2017-01-30 15:45:13 +02:00
Alp Mestanogullari 8efabed5c6 Revamp static file serving module.
Instead of only exposing 'serveDirectory', which picks a specific static file
serving strategy (file server settings), we now expose 4 different variants each
corresponding to an variant of StaticSettings in wai-app-static.

In addition to these, we expose a more flexible 'serveDirectoryWith' function
which allows the user to specify some arbitrary StaticSettings, if the 4
existing variants do not cover a user's needs.
2017-01-17 14:14:46 +02:00
Oleg Grenrus 34166ae749 Update tutorial (NT changes) 2016-11-16 08:29:36 +02:00
Julian K. Arni 5e09493aa6 Add more documentation about response headers to tutorial. 2016-10-26 17:17:34 +02:00
Julian K. Arni efbe6fd498 Use NoContent and fix content-type lists in docs. 2016-05-10 13:21:34 +02:00
Luke Cycon 21546991af Introduce a `Handler` alias for `ExceptT ServantErr IO`
Fixes #434
2016-04-11 22:27:29 -07:00
rwobben 0985e51022 deleted the Trans.Monad.Except 2016-03-19 17:40:00 +08:00
Sönke Hahn 027cd82725 tutorial: corrected curl examples 2016-03-19 17:40:00 +08:00
Sönke Hahn ac02a28527 tutorial: formatting for bash sections 2016-03-19 17:40:00 +08:00
Sönke Hahn e84fea334a tutorial: read through Server.lhs 2016-03-19 17:40:00 +08:00
rwobben e68cf28750 change a dependency and delete EmptyConfig 2016-03-19 17:40:00 +08:00
Julian K. Arni 5625f5273e more consistent line breaks 2016-03-19 17:40:00 +08:00
Julian K. Arni e1312c1bb6 sundry tutorial improvements 2016-03-19 17:40:00 +08:00
rwobben 9d2d7104d0 Changed so two titles are displayed correctly 2016-03-19 17:40:00 +08:00
Sönke Hahn 678d50796b tutorial: fix for ghc-7.8 2016-03-19 17:40:00 +08:00
Sönke Hahn a7424c4753 tutorial: make Server compile 2016-03-19 17:39:59 +08:00
Julian K. Arni f601cbf3b1 Fix cabal file, stack.yaml, and sources.txt 2016-03-19 17:39:59 +08:00