Commit graph

254 commits

Author SHA1 Message Date
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
Oleg Grenrus
ccf0056f64 Regenerate .travis.yml 2017-12-10 14:27:40 +02:00
Alp Mestanogullari
c5f2b9e175 add https recipe, add (future) github links at the end of all recipes 2017-12-08 23:44:48 +01:00
Alp Mestanogullari
6075700ebc add a recipe about 'structuring APIs' in general 2017-12-08 23:44:48 +01:00
Alp Mestanogullari
5ac6de8277 add file upload recipe 2017-12-08 23:44:48 +01:00
Alp Mestanogullari
6dc9d04e60 build cookbook projects in CI 2017-12-08 23:44:47 +01:00
defanor
b8c6c0b7c7 Add a cookbook recipe for JWT and basic authentication combination (#871) 2017-12-08 23:44:47 +01:00
Alp Mestanogullari
e2314aa059 add cookbook recipe for using a PostgreSQL connection pool 2017-12-08 23:44:38 +01:00
Alp Mestanogullari
8543e00aaa add a cookbook recipe for sqlite. cabalized cookbook examples. 2017-12-08 23:44:38 +01:00
Alp Mestanogullari
606a4a6f69 add a cookbook section to docs, with a first 'recipe' about basic auth 2017-12-05 18:09:41 +01:00
Oleg Grenrus
f8fb618efe Fix formatting in doc/examples.md 2017-11-06 13:08:29 +02:00
Cies Breijs
bd71022979 Update examples.md 2017-11-06 13:06:14 +02:00
Oleg Grenrus
018f0e082e Bump versions and update changelogs.
The changelog for `servant` contains changes across core packages,
as we release them as a suite.

Also added links to the GitHub master as we might update entries
for old versions, as changelogs are written by humans.
2017-11-06 11:24:48 +02:00
Oleg Grenrus
2d6bf5055b Improve .cabal files
- Add build-tool-depends, so new-build can use hspec-discover
- Add mtl bounds in tutorial (and dependency on mtl-compact)
- Add extra-source-files to tutorial, so it's buildable from sdist
2017-10-23 08:58:39 +03:00
Ryan James Spencer
ff5502f4f7 Replace User with Account in Generalized Authentication section (#757)
* Change `User` to `Account` in Generalized Authentication section
2017-10-17 14:31:29 +02:00
Ivan Lazar Miljenovic
b3e35fbc79 Make sure tutorial can build 2017-10-09 13:22:54 +11:00
Ivan Lazar Miljenovic
dc40badb7c Add motivating example for markdownWith to tutorial 2017-10-06 13:38:37 +11:00
Ivan Lazar Miljenovic
02821e326a Update sample servant-docs output in tutorial
Not all of this is due to the changes in multiple content-type
handling.
2017-10-06 13:21:20 +11:00
Oleg Grenrus
15cc4f55dd Update docs related to hoistServer 2017-10-01 20:24:22 +03:00
Julian K. Arni
da8337809b Documentation fixes 2017-09-14 09:54:13 -04:00
Oleg Grenrus
c46dd1aff9 Bump servant-docs version to 0.11 2017-07-24 10:54:11 +03:00
JoeMShanahan
e6c492ab2c Add hackage link to the cookie package 2017-07-17 11:18:13 +01:00
JoeMShanahan
2c0aa36ae9 Reword comment so that it actually makes sense! 2017-07-17 10:51:08 +01:00
JoeMShanahan
160cda2602 Explicitly state that we're adding a dependency here 2017-07-17 10:14:42 +01:00
JoeMShanahan
c24096be16 Bring back the comment 2017-07-17 10:09:51 +01:00
Joe Shanahan
400bd564dc Look inside cookies instead of just the header 2017-07-17 09:18:34 +01:00
Chris Martin
fbf870ac8a typo: "philosophy" 2017-06-20 11:42:08 -04:00
Oleg Grenrus
ec930ac9a8 Release 0.11 2017-05-24 08:02:56 +03:00
shak-mar
76703e5b80 Fix typo in ApiType.lhs 2017-05-19 15:02:10 +02: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
0bbc4f98a4 Rename EmptyAPIClient to EmptyClient 2017-05-16 16:00:15 +00:00
David Turner
f5d9983381 Rename emptyAPIServer to emptyServer 2017-05-16 15:59:41 +00:00
David Turner
fa3f1869f2 Add EmptyForeignAPI and instance HasForeign ... EmptyAPI 2017-05-16 10:07:30 +00:00
David Turner
2cfa71891b Add instance HasDocs EmptyAPI 2017-05-16 10:07:15 +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
4c64c13af0 Add EmptyAPIClient and instance HasClient EmptyAPI 2017-05-16 10:06:48 +00:00
David Turner
94483d586c Add instance HasServer EmptyAPI 2017-05-16 10:06:25 +00:00
David Turner
8a16f47fba Add EmptyAPI example (no prose yet) 2017-05-16 10:06:23 +00:00
David Turner
b81fbe445d Renumber again to make room for the EmptyAPI example 2017-05-16 10:06:16 +00:00
David Turner
e8c7158600 Renumber APIs in the tutorial to be in order 2017-05-16 10:06:00 +00:00