Oleg Grenrus
6ff70e2cdf
Adopt http-types-0.10
2017-10-23 08:04:28 +03:00
Oleg Grenrus
85929abcc8
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-22 21:31:25 +03:00
Oleg Grenrus
c3e4abd892
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-22 21:31:25 +03:00
Oleg Grenrus
b120c17137
cabal new-build based .travis.yml
2017-10-22 21:17:04 +03:00
Oleg Grenrus
03122c51a9
Update stack-ghc-8.2.1.yaml
2017-10-22 13:02:43 +03:00
Oleg Grenrus
26ffbd0033
Allow http-types-0.10
2017-10-22 12:29:55 +03:00
Oleg Grenrus
87800cd844
Bump servant-docs version to 0.11
2017-07-24 09:32:30 +03:00
Oleg Grenrus
f18a848d4d
Relax bounds
2017-06-28 12:07:39 +03:00
Oleg Grenrus
cc13d62c8c
Use #warning in Setup.lhs
2017-05-24 10:22:01 +03:00
Oleg Grenrus
71ed8b3736
Merge pull request #747 from phadej/release-0.11
...
Release 0.11
2017-05-24 10:18:14 +03:00
Oleg Grenrus
22d0f6ccb9
Make GHC-8.0.2 stack.yaml the default
2017-05-24 08:02:57 +03:00
Oleg Grenrus
b6cfd64b5a
GHC-8.2 readyness
2017-05-24 08:02:57 +03:00
Oleg Grenrus
ec930ac9a8
Release 0.11
2017-05-24 08:02:56 +03:00
Oleg Grenrus
f6c30b2892
Allow mmorph-1.2
2017-05-24 07:51:07 +03:00
Oleg Grenrus
3017bce18a
Merge pull request #756 from shak-mar/patch-1
...
Fix typo in ApiType.lhs
2017-05-19 16:06:55 +03:00
shak-mar
76703e5b80
Fix typo in ApiType.lhs
2017-05-19 15:02:10 +02:00
Oleg Grenrus
f0eec498a1
Merge pull request #755 from osa1/fix_reqbody_samples
...
Don't drop samples in `HasDocs ReqBody` instance
2017-05-19 14:58:06 +03:00
Oleg Grenrus
1ccb0ef812
Merge pull request #753 from DaveCTurner/issue-753
...
Add a type representing an empty API
2017-05-17 11:54:10 +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
a3c5f17749
Generalise type of emptyServer
so it can be Enter
ed
2017-05-17 05:17:08 +00:00
David Turner
f3ac10a1c4
Add missing DeriveDataTypeable
2017-05-16 16:26:47 +00:00
David Turner
7d07db7ed3
Add test for safeLink applied to an EmptyAPI type
2017-05-16 16:25:01 +00:00
David Turner
249a8386a5
Derive Enum on EmptyAPI
2017-05-16 16:04:25 +00:00
David Turner
021bcd9e23
Document that EmptyAPI is, morally speaking, the unit of :<|>
2017-05-16 16:03:25 +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
6feb27e7b2
Rename EmptyAPIServer to EmptyServer and add deriving clause
2017-05-16 15:53:19 +00:00
Ömer Sinan Ağacan
d8dd1cb90a
Don't drop samples in HasDocs ReqBody
instance
...
As reported in #754 , `HasDocs` instance of `ReqBody` was dropping samples other
than the first one. With this patch we show at most `_maxSamples` samples for
`ReqBody`, and also include the sample title in the docs.
2017-05-16 14:19:52 +03:00
David Turner
62560079b1
Add docs for serving an EmptyAPI
2017-05-16 11:09:54 +00:00
David Turner
178f05595a
Better docs for EmptyAPIClient
2017-05-16 11:06:37 +00:00
David Turner
e73f00b333
Test that no foreign functions are generated for an EmptyAPI
2017-05-16 10:31:33 +00:00
David Turner
113561639a
Fix name of test
2017-05-16 10:31:02 +00:00
David Turner
4b7ffc9461
Add test that EmptyAPI does not generate any docs
2017-05-16 10:29:27 +00:00
David Turner
2c6aca0fc6
Add to ComprehensiveAPI
2017-05-16 10:26:06 +00:00
David Turner
e60bdadead
Demonstrate that a client for EmptyAPI pattern-matches EmptyAPIClient
2017-05-16 10:21:37 +00:00
David Turner
937a5c98fd
Add test for emptyAPIServer
2017-05-16 10:18:57 +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
David Turner
5a65563d9a
Re-export EmptyAPI(..) from Servant.API
2017-05-16 10:05:58 +00:00
David Turner
d02c7668ee
Add EmptyAPI type
2017-05-16 10:05:24 +00:00
Oleg Grenrus
02fad699aa
Merge pull request #748 from phadej/raw-server
...
ServerT Raw m = Tagged m Application
2017-05-16 10:23:43 +03:00
Alexander Vieth
6389134423
Change to ServerT Raw m = Tagged m Application
...
For uniformity of Enter.
Previously, `ServerT Raw m ~ Application`. Seems reasonable, but has the
unfortunate consequence of making `Enter` useless for `Raw` routes.
With this change `Tagged m Application` is retagged by `Enter`.
2017-05-15 19:54:43 +03:00
Oleg Grenrus
301515210b
Merge pull request #751 from phadej/regression-734
...
Add regression test for #734
2017-05-15 19:52:49 +03:00