Commit graph

1609 commits

Author SHA1 Message Date
Oleg Grenrus
2cd18a2539 Fix #835. Use Escaped to prevent double-escaping 2017-12-18 19:52:32 +02:00
Oleg Grenrus
c9f0ebb6c2 Allow hspec-wai-0.9 2017-12-18 10:32:34 +02:00
Oleg Grenrus
80230ca157
Merge pull request #877 from phadej/r0.12-http-types-0.11
release 0.12: allow http-types-0.11
2017-12-18 10:27:38 +02:00
Oleg Grenrus
3522c2acf4 release 0.12: allow http-types-0.11 2017-12-18 09:04:06 +02:00
Oleg Grenrus
e886ab83ab
Merge pull request #860 from haskell-servant/issue-858-accept-hdr
Send Accept header in servant-client
2017-11-11 00:05:11 +02:00
Oleg Grenrus
66cd8b843b Build only master and release-0.12 on travis 2017-11-10 23:29:48 +02:00
Oleg Grenrus
8574d8d2a9 Send Accept header in servant-client
Fixes #858. The bug was introduced in servant-client-core refactor
(servant-client-0.12).

See 8973cf56f1/servant-client/src/Servant/Common/Req.hs (L151-L179)
for the unbroken variant in servant-client-0.11
2017-11-10 23:28:26 +02:00
Oleg Grenrus
83aea36c14 Fix typo in changelog 2017-11-08 12:50:06 +02:00
Oleg Grenrus
7e9910b27e
Merge pull request #855 from phadej/more-changelog-0.12
Open up significant changes in 0.12 [ci skip]
2017-11-08 10:19:26 +02:00
Oleg Grenrus
0813957b43 Open up significant changes in 0.12 [ci skip] 2017-11-08 10:18:16 +02:00
Oleg Grenrus
4d851178a0
Merge pull request #853 from haskell-servant/release-notes
Add release process outline [ci skip]
2017-11-07 21:04:21 +02:00
Oleg Grenrus
e431de453f Add release process outline [ci skip] 2017-11-07 19:34:47 +02:00
Oleg Grenrus
c5d34607ac
Merge pull request #854 from phadej/pull-851
Pull 851
2017-11-07 19:31:39 +02:00
Oleg Grenrus
2779f523ca Add doctests (and changelog) 2017-11-07 19:08:10 +02:00
Robert Hensing
7410b4faa8 Links: add allLinks function and MkLink instance for (:<|>)
This lets you generate all links at once, which is useful in
conjunction with servant-generic.
2017-11-07 18:39:02 +02:00
Oleg Grenrus
a4b69d432b Add HoistSpec to other-modules of spec 2017-11-07 14:12:19 +02:00
Oleg Grenrus
e1c46c2069
Merge pull request #850 from phadej/pull-783
Try to add test for root client request
2017-11-06 14:29:20 +02:00
Oleg Grenrus
bd7f6edb8b Try to add test for root client request 2017-11-06 14:11:05 +02:00
Oleg Grenrus
c9ddd9b183
Merge pull request #847 from phadej/pull-742
Pull 742
2017-11-06 13:34:07 +02: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
d04bd290c5
Merge pull request #846 from phadej/pull-809-foreign-data
Pull 809 foreign data
2017-11-06 13:04:15 +02:00
Oleg Grenrus
bba98a3755 Update changelogs 2017-11-06 12:35:43 +02:00
Oleg Grenrus
80c6ba5347 Derive Typeable for internal servant-foreign types 2017-11-06 12:29:43 +02:00
Oliver Charles
bfe6f5b0a4 servant-foreign: Explicitly import Data 2017-11-06 12:21:35 +02:00
Ollie Charles
197d776e08 servant-foreign: Move -XDeriveDataTypeable to servant-foreign.cabal 2017-11-06 12:21:31 +02:00
Ollie Charles
335e30be74 servant-foreign: Derive Data for all types 2017-11-06 12:21:28 +02:00
Oleg Grenrus
b7b6ce7f40
Merge pull request #845 from phadej/changelog-0.12
Bump versions and update changelogs.
2017-11-06 12:19:50 +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
gbaz
da98c94e2f refactor servant.server.internal to consolidate functions (#837)
refactor servant.server.internal to consolidate functions
2017-10-28 20:17:24 +02:00
Oleg Grenrus
ec8c99372d
Merge pull request #839 from phadej/travis-new-build
cabal new-build based .travis.yml
2017-10-27 23:57:31 +03:00
Oleg Grenrus
9fa886b145 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-25 18:15:19 +03:00
Oleg Grenrus
fcaef360cb Don't build --dep for all
As tutorial depends on servant-js, which isn't in this repository
cabal fails fatally to `new-build --dep all`.

Instead we are building deps for servant-server and servant-client only,
which already includes e.g. http-client and warp, i.e. pretty much
everything we need. It's not bad that some dependencies might be build
during `script` phase
2017-10-25 18:15:03 +03:00
Oleg Grenrus
b45e94de19 cabal new-build based .travis.yml 2017-10-25 18:15:02 +03:00
Oleg Grenrus
de965b208e Merge pull request #842 from phadej/http-types-0.10b
Http types 0.10b
2017-10-25 13:08:15 +03:00
Oleg Grenrus
76616de601 Allow http-types-0.10 2017-10-25 12:56:12 +03:00
Oleg Grenrus
09485871f5 Adopt http-types-0.10 2017-10-23 08:59:36 +03: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
Oleg Grenrus
781ea66a62 Use http-types-0.10 in stack.yaml 2017-10-23 08:57:56 +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
Alp Mestanogullari
602806296e Merge pull request #834 from ivan-m/group-notes-together
servant-docs: Offer the ability to group notes together
2017-10-11 11:54:52 +02:00
Ivan Lazar Miljenovic
0d97deada9 Note change 2017-10-11 12:19:00 +11:00
Ivan Lazar Miljenovic
6df200326f Add an option to wrap notes in a separate header
Closes #831, using option 3.
2017-10-11 12:12:48 +11:00
Ivan Lazar Miljenovic
9d10fe13dd Use 3rd-level headings
For some reason, 2nd-level headings are used for introductions and for
each API endpoint, but then it immediately jumps to 4th-level
headings.

Instead, promote everything that's 4th-level to 3rd-level.
2017-10-11 10:48:22 +11:00
Alp Mestanogullari
f960d97256 Merge pull request #829 from ivan-m/multiple-content-types
servant-docs: configurable rendering for multiple content types
2017-10-09 08:13: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
Ivan Lazar Miljenovic
ed3ace3066 Handle request/response bodies with empty titles 2017-10-06 13:19:04 +11:00
Ivan Lazar Miljenovic
a21beadf86 Continuing fix to build on 7.8.4 2017-10-06 13:03:27 +11:00