Commit graph

294 commits

Author SHA1 Message Date
Oleg Grenrus
83336ae991 Small updates
- Allow newer js-jquery in tutorial
- use bionic on Travis
- allow newer hspec in servant-jsaddle
2019-11-17 19:39:44 +02:00
Noah Snelson
5612772448 Change Type Families user manual link to specify GHC 8.8.1 2019-10-07 18:55:47 -07:00
Noah Snelson
ec80f251f3 Fixes issue #1206 by updating broken links in tutorial. 2019-10-07 11:23:30 -07:00
Catherine Galkina
8550926d90 Updated docs 2019-09-29 14:18:13 +03:00
Oleg Grenrus
f089f8d0b2 Relax bounds for ghc-8.8 2019-09-29 00:43:53 +03:00
Oleg Grenrus
ecbc04bbee Regenerate .travis.yml; GHC-8.6.5; add GHCJS 2019-09-07 14:03:46 +03:00
Alp Mestanogullari
35cae91fdb
Merge pull request #1194 from rl-king/doc-test-warpserver
Testing cookbook recipe: use Warp.testWithApplication to prevent race condition
2019-08-16 20:39:56 +02:00
Alp Mestanogullari
e9aec26fb2
Merge pull request #1198 from jakequade/cookbook-mysql-basic
Add mysql cookbook example
2019-08-07 10:41:27 +02:00
Jake Quade
7554ed4ae3 Add mysql cookbook example
Contributes a basic mysql-backed API with basic CRUD functionalities.
2019-08-05 15:32:57 +10:00
rl-king
da174d9887 Use Warp.testWithApplication to prevent race conditions 2019-07-16 22:16:59 +02:00
jake
d4289931ad add stack to tutorial docs (#1177)
* add stack to tutorial docs

* adjusted stack install wording
2019-07-10 09:14:39 +02:00
Manuel Bärenz
0ccb02dad1
Fix small typos in doc/tutorial/Server.lhs 2019-04-20 10:52:49 +02:00
Domen Kožar
1826b8a767
Add streaming to the cookbook toc 2019-04-19 14:45:14 +07:00
Yann Esposito (Yogsototh)
53b97dd8b3 Adding OIDC Cookbook 2019-04-15 19:50:28 +03:00
Oleg Grenrus
e52e11a0ad Use ghc-8.6.4 on travis 2019-03-06 12:39:18 +02:00
Alp Mestanogullari
a386dd2095 point to www.servant.dev (website) and docs.servant.dev (self-explanatory) 2019-03-02 10:08:03 +01:00
Nick Boultbee
0869725b99
Fix typo in docs 2019-02-27 09:23:36 +00:00
Oleg Grenrus
a5655f8d5a Rename ServantError to ClientError, ServantErr to ServerError 2019-02-18 22:51:09 +02:00
Oleg Grenrus
420ebd0475 Refactor servant-client-core
- No more Internal modules
- Remove ClientLike-generic. Let's use Routes-generics
    - Let's see if anyone notices, otherwise we can add it back
- Add Makefile for common tasks
    - Fix servant-client-ghcjs
2019-02-18 19:08:13 +02:00
Oleg Grenrus
7e3853d030
Merge pull request #1124 from domenkozar/docs
Bump docs dependencies and move docs docs to README
2019-02-12 10:43:54 +02:00
Domen Kožar
53b3b939e4
Bump docs dependencies and move docs docs to README 2019-02-12 13:38:25 +07:00
Oleg Grenrus
525b74c6f4 Update travis once again
- Update GHC-8.6.2 to GHC-8.6.3
- Build cookbook only with GHC-8.4.4 and GHC-8.6.3, thus
  making 8.0 and 8.2 jobs a little faster
2019-02-12 01:33:30 +02:00
Oleg Grenrus
4fab471c29 Refactor servant-client(-core)
- Rename GenResponse to ResponseF (analogous to RequestF)
- add NFData Headers
- Make Request and Response bodies be SourceIO,
  i.e. move conversions into specific implementations
2019-02-06 12:15:20 +02:00
Oleg Grenrus
109f7b2a45 Add venv warning checks to doc/Makefile 2019-02-02 16:05:03 +02:00
Oleg Grenrus
b685efecbe Allow network-3.0 2019-01-23 02:20:16 +02:00
csamak
2191fc815e
Fix the tutorial app4 curl example
Change the app4 curl example to match the API definition.
2018-12-17 11:11:41 -08:00
Oleg Grenrus
e3e5d2b230
Merge pull request #1082 from phadej/changelog-0.15b
Changelog 0.15b
2018-11-13 17:55:18 +02:00
Oleg Grenrus
a1a99552b5 Changelog and cabal file edits
- Add #1079, #1011 entry
- Stricter internal dependencies
- Unify .cabal files
- Correct -conduit, -machines, -pipes changelog
- Fix years in LICENSEs
- Remove tinc.yamls
- Tweaks to 0.15 changelog
- Add changelogs for all packages
- Add changelogs for new packages (extra-source-files)
2018-11-13 09:58:42 +02:00
Xavier Shay
63d685adb3 Add note to custom monad documentation about what to do with Raw endpoints. 2018-11-11 09:31:57 -08:00
Oleg Grenrus
5f947d1c43 Bump version numbers
- Almost everything 0.15; also servant-foreign jumped to 0.15, for
  consistency
- Bump lower bounds of dependencies to most recent versions atm
- Use hspec-2.6.0
- Update `stack.yaml` accordingly
- Use base-compat a bit more
- Drop aeson-compat dependency (in tests and tutorial)
2018-11-09 20:20:26 +02:00
Oleg Grenrus
4195fd04d4 tested-with: GHC==8.6.2 2018-11-09 17:41:00 +02:00
Oleg Grenrus
8feda81fcd Separate Servant.Client.Streaming
- as a bonus only `servant-client` depends on `kan-extensions`
2018-11-08 17:58:21 +02:00
Oleg Grenrus
f63610a513 base-compat in hoist-server-with-context 2018-11-05 19:20:18 +02:00
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
Kostiantyn Rybnikov
9d06e42525 Add ReaderT import 2018-10-26 13:05:46 +03:00
Kostiantyn Rybnikov
5620d2d781 Rename one function, run custom monad code from main 2018-10-26 13:05:46 +03:00
Kostiantyn Rybnikov
c1e15ef4c3 genericServeT and docs on using a custom monad with generics 2018-10-26 13:05:46 +03:00
Oleg Grenrus
a4151acf9e Enable testing recipe 2018-10-25 23:16:16 +03: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
Oleg Grenrus
788e0248f1 8.4.4 job 2018-10-15 18:15:52 +03:00
Alp Mestanogullari
9d63445fbf
Merge pull request #1050 from erewok/testing-cookbook
Add Testing cookbook
2018-10-15 07:05:30 +02:00
Erik Aker
bb365159f3 Pull out instance for hopefully more clarity 2018-10-14 13:27:33 -07:00
Erik Aker
02da07f95f small typo cleanups 2018-10-14 11:04:37 -07:00
Erik Aker
64f89f600a Use a different server-running method and add bulleted list of strategies at start 2018-10-14 10:19:49 -07:00
Erik Aker
0d0fd0de82 Clean up the comments 2018-10-13 06:35:56 -07:00
Erik Aker
18456baac5 Clean up the language so it reads better 2018-10-12 17:32:20 -07:00
Erik Aker
89336aee96 Make tests run and include failings for illustrative purposes 2018-10-12 08:48:25 -07:00
Erik Aker
43af1d0c9e WIP Commit: must finish servant-quickcheck tests 2018-10-11 20:51:30 -07:00
Colin Woodbury
c1ef734fa0
Jigger some base bounds for CI 2018-10-07 13:02:37 -07:00
Colin Woodbury
b2ed29b0b9
Update Travis config for GHC 8.6 2018-10-07 11:33:05 -07:00
Erik Aker
0c4dc88592 Add new cookbook recipe for hoistServerWithContext 2018-10-03 18:00:06 -07:00
Oleg Grenrus
e03b568b41 Regenerate .travis.yml 2018-09-19 13:27:43 +03:00
Marco Perone
3306e6ff3c add missing show on sentry cookbook 2018-09-19 08:25:42 +02:00
Marco Perone
7a9504e046 cookbook sentry integration page 2018-09-19 08:21:09 +02:00
Jakob Demler
8336fc96d5 fix some curl-mock typos 2018-09-15 01:36:09 +02:00
Jakob Demler
765b62b05b curl-mock cookbook example 2018-09-14 19:01:04 +02:00
aRkadeFR
6211c0c70b Full website project with servant,auth,elm,yeshql,postgresql 2018-08-29 18:40:57 +02:00
Alp Mestanogullari
5aa22866f2
fix github code search link 2018-07-11 16:51:50 +02:00
Oleg Grenrus
44d34dfd9b
Merge pull request #1007 from haskell-servant/github-search
Point to github search for "import Servant" in the examples page
2018-07-11 01:32:49 +03:00
Oleg Grenrus
5ba0e439dc Support only GHC-8.0+
Let's bump lower bounds to whatever is in LTS close to release date.
2018-07-10 17:17:56 +03:00
Alp Mestanogullari
749eb61aef
Point to github search for servant in the examples page 2018-07-09 14:04:49 +02:00
Oleg Grenrus
a7fc453ee1 Fix typo 2018-07-06 11:59:16 +03:00
Oleg Grenrus
4b247ee801 Update doc deps 2018-07-06 11:57:30 +03:00
Alp Mestanogullari
4eca451f2c
oops 2018-07-06 01:50:58 +02:00
Alp Mestanogullari
ab68ff8ae2
remove credits to @phadej 2018-07-06 01:48:12 +02:00
Alp Mestanogullari
66039fd124
tweaks 2018-07-06 00:38:22 +02:00
Alp Mestanogullari
fbd9f3ec29
tentative improvements 2018-07-06 00:36:37 +02:00
Oleg Grenrus
8dc323ef0a Add 'using free client' recipe 2018-07-06 00:21:17 +03:00
Oleg Grenrus
2ec3596c56 Add generic/Generic.lhs to cookbook/index.rst 2018-07-05 23:21:32 +03:00
Oleg Grenrus
88f8d3b0d1 Merge servant-generic 2018-07-05 23:21:25 +03:00
Alp Mestanogullari
11928bcdd2 website/tutorial tweaks 2018-06-12 23:23:24 +03:00
Oleg Grenrus
0b084afe62 Update .travis.yml
- Disable file-upload recipe (changed MkLink breaks released
  servant-multipart)
- GHC-8.4.2 -> GHC-8.4.3
2018-06-01 13:42:34 +03:00
Oleg Grenrus
a66aa8a981
Merge pull request #959 from jvanbruegge/fix-stream
Change definition of StreamGenerator
2018-05-28 09:26:53 +03:00
Oleg Grenrus
e874beba18 Try to fix pagination sdist 2018-05-28 08:13:36 +03:00
Oleg Grenrus
c56fda3869 Support GHC-8.4.1 and newer deps 2018-05-26 01:06:36 +03:00
Jan van Brügge
a0b6d7a2de Update documentation 2018-05-24 05:08:48 +02:00
Alp Mestanogullari
9fb4b87ac4
Update examples.md 2018-05-22 17:21:47 +02:00
Alp Mestanogullari
40bc0f2983
one more repository full of examples 2018-05-22 17:20:34 +02:00
Bryan Richter
abd11b2a8f
Remove duplicate type declaration
UserAPI1 is already defined at line 64.
2018-05-12 16:58:43 -04:00
Alp Mestanogullari
6af38354d0
Merge pull request #946 from KtorZ/servant-pagination
add cookbook recipe introducing servant-pagination
2018-04-17 10:33:28 +02:00
KtorZ
93838ae9e7
Add recipe introducing servant-pagination 2018-04-17 10:02:40 +02:00
Alp Mestanogullari
fc3c6089b8 document hoistClient (haddocks, tutorial) 2018-04-04 01:48:48 +02:00
Alp Mestanogullari
5d30010312 add reference to servant-flatten 2018-03-21 10:23:33 +01:00
Jan Hrček
e9113111d6 Add link to cookbook example of basic auth (#752) 2018-03-21 04:48:01 +01:00
Manu S Ajith
6a410dcd07
Fix some typos in docs
Signed-off-by: Manu S Ajith <neo@codingarena.in>
2018-03-13 03:21:56 +05:30
Alp Mestanogullari
6ed48b742c
Fix typo in tutorial 2018-02-15 09:59:21 +01:00
Oleg Grenrus
c55b778d8e Bump lower bound of http-types >= 0.12
- WIP: pending http-api-data release
- TODO: remove MIN_VERSION_http_types
- There have been 3 major releases of http-types:
  - 0.10 change name of variable
  - 0.11 lowercase escaped URIs
  - 0.12 uppercase escaped URIs
- It's easier for us to support only latest, migration from 0.9/0.10 to 0.12
  is trivial for the downstream. 0.11 may cause semantic (non-type-error) breakage somewhere.

Also allow lens-4.16, remove MIN_VERSION_http_types conditionals, and
update `stack.yaml`
2018-01-30 11:29:25 +02:00
Michal Rus
e4bd07a907 Support http-client’s CookieJar in servant-client 2018-01-26 18:45:52 +02:00
Oleg Grenrus
f9963d32ff Bump lower bounds in rest of packages 2018-01-25 17:17:35 +02:00
Oleg Grenrus
98a12c328b Reinstate cookbook testing to CI 2018-01-18 00:21:13 +02:00
Oleg Grenrus
2dc48f0684
Merge pull request #885 from phadej/travis-2018-01-05
Regenerate .travis.yml
2018-01-05 12:11:08 +02:00
Oleg Grenrus
816b7115f9 Regenerate .travis.yml 2018-01-05 10:33:10 +02:00
Alp Mestanogullari
0147f4b5c7
Merge pull request #882 from ilya-murzinov/docs-another-monad
Added new cookbook recipe for using custom monad
2017-12-29 12:51:44 +01:00
Ilya Murzinov
f1911f390d Added new cookbook recipe for using custom monad 2017-12-29 13:22:32 +03:00
Alp Mestanogullari
bba8cecf9f
Merge pull request #875 from kakkun61/improve-authentication-docs
Improve authentication docs
2017-12-28 15:01:51 +01:00
Oleg Grenrus
68bc41b41d
Merge pull request #867 from haskell-servant/cookbook
[Docs] Cookbook
2017-12-27 14:11:52 +02:00
Alp Mestanogullari
8e0cb615ad cookbook projects: add (lower) bounds for non servant deps 2017-12-27 01:33:12 +01:00
Kazuki Okamoto
4b9d60ca8d fix compilation error: move import declaration and add cookie to dependencies 2017-12-13 16:52:44 +09:00
Alp Mestanogullari
40c1315097 elide some of the servant README in file upload example output 2017-12-12 19:57:21 +01:00
gbaz
7edd35c9f0 docs for streaming (#852)
* docs for new streaming related combinators
2017-12-11 21:32:17 +01:00